-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Unresponsive when ninja is compiling a project (i.e. when CPU usage spikes) #1780
Comments
I've done extensive profiling with Instruments in the past to get to current performance. AltTab UI rendering is pretty fast (as fast as AppKit can go) and most importantly, most of the OS calls are made async in background threads so the UI doesn't wait to paint. It may be possible to replicate the CPU pressure of ninja using some shell utility that does CPU stressing. Also to share: AltTab runs as some kind of background app (no Dock icon), so i've already implemented a number of extra things to avoid Sudden Termination, Automatic Termination, Power Nap, or get CPU throttle by the OS since it's a background app. AltTab is very easy to run locally from source. It's 2 CLI commands away. You may try to profile it yourself if you have the skills to help here |
Ah yes, I've been wondering about that. Why didn't you make AltTab run like most apps do? Is it because it uses way more CPU, etc.? or was it just to make it easier for people to run it, like what you said about running it locally? |
@XInTheDark there are 2 distinct topics here:
|
@starptr could you please share a link to a project that I could use to reproduce the issue? I have tried using Furthermore, in the latest release of AltTab, I have changed the way AltTab is launched by Could you please confirm that on the latest version of AltTab, you can reproduce the issue? And if yes, please share the project so I can try with ninja. Even |
Unfortunately I no longer have a suitable machine to reproduce this with (and the original project I experienced this problem in is also unfortunately proprietary). I’ll let you know once I get a mac machine and if I can find a repro that’s useful for debugging this issue! |
I have noticed this issue as well. For example, when an IDE is starting, it takes up most of my CPU, and AltTab tends to become unresponsive when I activate it. |
The difference is barely noticable as it only occurs for a few seconds, but still happens nonetheless. |
Hi, I don't think there is much more we can do to have AltTab perform when the OS is overloaded. Delays are unavoidable Bugs are avoidable though, so we'll try to resolve #3845. If you see other issues during high load scenarios, please open new tickets with specific issues 👍 Thank you |
Describe the bug
When using ninja to compile a c++ project, it uses multiple cores & CPU usage spikes. The system is overall slower, but alt-tab is uniquely unresponsive / laggy.
Screenshots / video
The alt-tab UI does not appear when pressing alt-tab. Sometimes, the keypress is registered (albeit the visual UI only appears after multiple seconds), but the depress is not registered so the UI stays on-screen.
Steps to reproduce the bug
ninja -C <dir>
command to build the project.The text was updated successfully, but these errors were encountered: