-
Notifications
You must be signed in to change notification settings - Fork 69
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
WindowTop causes significant background CPU usage while idling #369
Comments
Hello, what windows do you have? (Windows 7/10/11) What version did you install? On my system, the CPU usage is 0%. It is also possible that the high CPU usage is due to a weak CPU. |
Windows 11 - 24H2 Release Preview.
Yes, I tried disabling everything, and still the same issue. I also tried disabling the window toolbar, on which I normally only have Always on Top and Dark Mode pinned. I even tried whitelisting to only one exe while every feature was disabled.
Yes, paid MS Store version.
Surface Pro 7, Intel® Core™ i7-1065G7. But I’ve used many window manager utilities over the years, even much weaker CPUs, such as AquaSnap, TidyTabs, PowerToys - Always on Top and FancyZones, ActualTools - TitleButtons, etc, and those barely registered in the background. From those I listed, I only still run PowerToys - FancyZones and ActualTools - TitleButtons at startup, which show <1% in the background. My original plan was to fully replace ActualTools - TitleButtons with WindowTop, but due to the CPU usage, I now sadly have to manually run and exit WindowTop only for its Dark Mode during the night. |
@WindowsTablet The way to figure it out is to create multiple builds, each build with another part of code disabled, and see if the problem is fixed/reduced in any of these builds. First, I need to verify that you can reproduce the issue on the portable version. Let me know once you reproduce it with the portable version. |
Slightly better CPU behavior with the portable v5.23.3 version, but still too much. I roughly measured the difference in Process Explorer, by watching cycle count from startup after 1 minute. |
@WindowsTablet |
@WindowsTablet, Hello again. While checking it, it confirmed what I suspected—the code that causes a lot of CPU usage is the code responsible for checking the state (size, style, etc.) of every window. The issue is that it is not event-driven. It is a loop that constantly checks the state of every window. There is an easy solution—to use the OS's event-driven method —that I was not aware of while I wrote this code. Fortunately, changing it to event-driven seems like a simple task because I have already started changing some basic implementations, which allows me to do it more easily. I will work on it when I get the time. Thanks for the report. |
Discussed in #368
Originally posted by WindowsTablet September 1, 2024
WindowTop is a great utility, but it has one major problem. It idles in the background with significant CPU usage, even when none of its features are running, eating my battery away. It consistently shows at least 3% background in Windows "Battery usage" settings each day.
Could anything be done to improve this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: