-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Significant CPU usage increase when playing in fullscreen mode with Vsync enabled #65649
Comments
A couple of questions:
If possible provide a minimum reproduction project that exhibits this, otherwise there is very little we have to go on. |
I'd recommend looking into using a C++ profiler on a debug build to determine where the increased CPU usage comes from. (You'll have to run two profiles, one at the default window size and one in fullscreen.) |
Window size with fullscreen off is "maximised" on a 1920x1080 monitor. So it's close to full resolution, resizing it and making it smaller doesn't make a difference. Fullscreen on is 1920x1080. This happens on every project (even the tutorial ones), so properties like display/window/size/width and display/window/size/height don't make a difference. Frames per second is 144 on a 144hz monitor, in fullscreen on and off (with vsync). I noticed in a similar issue, #21586, that the CPUs are the same, so maybe that could have something to do with it. Now that i'm looking at it again, this issue maybe is a duplicate of that one. I will try profiling with visual studio and a debug build and post the resulting file when I get the chance. |
This is why an MRP is important, it allows us to see what you have changed from defaults. In this case interesting is the
The help file should probably be clearer, this should not imo be used in most games, as it can completely mess up timing as it uses Try setting this back to the default 0, and see your results then. Currently the Also CPU use can change depending on the method your OS uses for vsync in windowed and fullscreen, so it is possible the CPU might be outside of Godot. There are also various OS window compositing systems that may work differently in windowed and fullscreen, so there's a huge amount of variation that can occur here totally outside of Godot. |
In some projects force fps is untouched, and it still happens. I also created a brand new project and only added toggling fullscreen with f11, and it still happens. fs-mrp.zip - Run project and press f11 to toggle fullscreen |
Godot version
Godot Engine v3.5.stable.official.991bb6ac7
System information
Windows 10, i7-7700k, GTX 1050TI
Issue description
CPU usage increases in any project when fullscreen is on and Vsync is enabled. I also experience occasional hitching in the games in fullscreen mode which may be caused by this.
I don't have this problem with other games, engines or programs.
Steps to reproduce
N/A
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: