-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Compton 90% cpu usage at blank screen idle #92
Comments
@siyia2 Does this only happen when you are at the lock screen? |
no it happens after screen is blank and goes to sleep |
@siyia2 I might know where the problem is. In you config file, can you try change |
ok will do and post back |
wow i think that did the trick!i also changed opacity = 0.75; to opacity = true; in my wintypes,compton cpu usage at idle is 1% now, is this a bug? |
@siyia2 Yep, this is a bug. Might still take some time for me to find the root cause. In the meantime, just avoid using |
ok thx! |
Previously, compton fails to stop draw_idle in some cases when sw_opti is enabled. sw_opti is a feature that limits the draw frequence to vblank frequence. It adds a delay to drawing when the screen is updated more frequently than the vblank frequence. However when the delay is not used (i.e. the screen is updated infrequent enough), compton will start drawing the frame directly without using the delay. And specically in this case, compton will fail to stop the draw_idle, causing a callback to be called once per loop of the mainloop, resulting in high CPU usage. Fixes #92 Signed-off-by: Yuxuan Shui <[email protected]>
Platform
gentoo/debian
GPU, drivers, and screen setup
ryzen 2200u vega 3 single screen laptop
Environment
xfce4 4.12.5
Compton version
latest from git
Compton configuration:
Steps of reproduction
Let lightdm lock screen at idle after a few minutes compton gets at 90% cpu usage
Expected behavior
1-2% cpu usage at idle
Current Behavior
90% cpu usage at idle
Stack trace
Other details
i use amd and mesa 18.3.2 also laptop has an additional amd dedicated gpu
The text was updated successfully, but these errors were encountered: