regenny icon indicating copy to clipboard operation
regenny copied to clipboard

Very high (90+%) GPU usage when window is not visible

Open foophoof opened this issue 8 months ago • 0 comments

I noticed the fan on my GPU spinning up on my computer when I was seemingly doing nothing, and I was able to narrow it down to regenny.

When the window is hidden (e.g. if I alt-tab to a Firefox window that entirely covers the regenny window), regenny's GPU usage as reported by Task Manager jumps to 90-100%. When the window is visible, it drops down to ~9% (which still seems quite high).

My guess would be that there's some optimisation happening when the window isn't active where it's not fully rendering and the framerate is uncapped or something, but at first glance there does seem to be an FPS cap in the code so I'm not sure.

I'm running Windows 11, with commit 1012cc2387e542c7ddd2bb0e97c0fefc492bfb7e, compiled with Visual Studio 2022.

foophoof avatar Oct 17 '23 11:10 foophoof