-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
High CPU when using an application in full screen #339
Comments
Are there any differences in configuration between your machines, if it only happens on one of them? Does the high CPU usage persist if you switch away from the fullscreen space? Is this happening for all applications or only for specific applications? Can you try to reproduce this after disabling focus_follows_mouse and/or certain rules that you think could interfere? |
The CPU usage immediately drops on switching away from the fullscreen application. I had to take the profile sample from an ssh session to capture it due to this. I'll see if I can narrow it down any further. |
I assume that the issue is that the following spin-lock triggers incorrectly in this case: https://github.com/koekeishiya/yabai/blob/master/src/event.c#L672 So what is supposed to be happening here, is that this specific code-path should only trigger when an application exits fullscreen-mode. The spin-lock is in place because we have to wait until the animation finishes before we can interact with the window again. |
I've made some adjustment on the master branch. Can you run that version and see if you are able to reproduce the issue? |
Thanks for the quick changes! I've been trying to repro it before updating to master but can't seem to make it happen again. I'll continue with my daily use on master and let you know if it appears again. |
Just an aside, the |
That's a Homebrew thing, you'll have to uninstall before installing from HEAD. |
Thanks, that worked. I managed to repro again before updating, and find a relatively reliable repro case. It does look to be resolved on |
…screen enter/exit transition to end
On one of my PCs, I can reproduce yabai using insanely high CPU while focused on a fullscreen app.
Profile sample: yabai.txt
Configuration: yabairc.txt (may be related to my custom rule, requires further testing)
macOS 10.15.1 (19B88)
Please let me know if more information is required.
The text was updated successfully, but these errors were encountered: