Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insane CPU usage #173

Open
OtaK opened this issue Jan 5, 2022 · 3 comments
Open

Insane CPU usage #173

OtaK opened this issue Jan 5, 2022 · 3 comments

Comments

@OtaK
Copy link

OtaK commented Jan 5, 2022

Hi!

I've been seeing some CPU usage threads with dual/quad cores being relatively used and I'm having quite the issue:

image

Yup. This program uses 100% of my 32-core Ryzen 9 5950X, causing issues with other things, cracking audio etc.

I have a small question, could it be possible to have a flag/feature-gated GPU-backed processing?

This is being quite bothersome as I'm currently using this program for business meetings and well, it basically prevents me from using my computer at the same time.

FYI I run this program with the following configuration:

width = 800
height = 600
fps = 30
background-image = blurred-bg.jpg
background-blur = 0
background-keep-aspect = yes
no-background = no
no-foreground = yes
no-postprocess = no
select-model = 0

Specs:

  • CPU: Ryzen 5950X
  • RAM: 32GB DDR4 3800CL14
  • GPU: RTX 3080

Thanks!

@fangfufu
Copy link
Owner

fangfufu commented Jan 5, 2022

What is the version of your Python and OpenCV? Which distro are you using? I guess I need to write a frame rate limiter for higher performance machines.

@OtaK
Copy link
Author

OtaK commented Jan 10, 2022

What is the version of your Python and OpenCV? Which distro are you using? I guess I need to write a frame rate limiter for higher performance machines.

Hi! Sorry for the late answer;

Python: 3.7.10
OpenCV: 4.5.4

As for my distro, I'm running Funtoo (up to date) with a 5.12.19-ck SMP PREEMPT kernel

@systematiccaos
Copy link

Same problem here:

OS: Arch Linux x86_64
Host: 20TL000KFR ThinkPad X1 Extreme Gen 3
Kernel: 5.16.1-arch1-1
Uptime: 2 hours, 12 mins
Packages: 1101 (pacman), 15 (flatpak)
Shell: fish 3.3.1
Resolution: 1920x1080, 1920x1080
WM: i3
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: alacritty
CPU: Intel i7-10850H (12) @ 5.100GHz
GPU: Intel CometLake-H GT2 [UHD Graphics]
GPU: NVIDIA GeForce GTX 1650 Ti Mobile
Memory: 21182MiB / 64137MiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants