-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
[BUG] High cpu usage whith an offset that is not zero in i3 #667
Comments
I use offsets and do not notice any load because of it.
(defwindow bar
:monitor "0"
:geometry (geometry
:x "-67px"
:y "180px"
:width "140px"
:anchor "top right"
)
:stacking "bg"
:focusable false
:reserve (struts
:distance "0px"
:side "right"
)
:windowtype "dock"
:wm-ignore true
(top)
) |
Putting |
I think that is In fact what's going on, i3 specifically seems really happy to just spam moving my windows around for no reason... I'll need to look into a better fix here. |
Checklist before submitting an issue
Description of the bug
Title says it all. Cpu jumps to about 19-23% when using an offset in a bar that is not zero. When changing the offset back to zero cpu usage is 4-5%.
Tested with the following:
Reproducing the issue
Using this config:
Everything works normally. However, setting geometry.x and/or geometry.y to something non-zero makes eww, xorg and i3 use a significant amount of cpu.
Expected behaviour
Cpu usage to be about the same both with and without offset.
Additional context
With non-zero offset:
About 20% total cpu usage and 54ºC cpu temperature.
With zero offset:
About 4% total cpu usage and 40ºC cpu temperature.
EDIT: Saw another issue which attached a flamegraph. Turns out them flamegraphs are pretty easy to do, so I made these:
With offset:
Without offset:
Seems like g_signal_emit_valist might be the culprit. I don't know if this is an issue with eww or gtk, so I would appreciate if someone could shine some light about this.
The text was updated successfully, but these errors were encountered: