I’m struggling since a while with running my app by default with VSync off and seems that only pressing once Alt Tab partially solves the problem.
Unity 2023.1 - Windows 10, Nvidia 3050.
Project/Quality settings are no Vsync (VSync 0 ) and Exclusive Full screen, Target frame rate -1.
Did the regedit reset because of the known bug that doesn’t refresh them after each built.
Please note that I tried any possible combination of Project/Quality settings and also setting Fullscreenmode and Vsync by script and leaving the defaults (see later).
Note also that I tried any possible combination of Windows settings, Nvidia settings/panel, XBox panel off, regedit as aforementioned, windowsgraphic settings and Hardware specific/Vendor related setting. Also all the possible permutations of the above.
This is a Build for Windows when starting playing:
This is what happens after pressing once AltTab and nothing else:
This is instead how it runs after going in my InGameVideoOptions, and setting in FullScreenWindowMode (VSync is still off) as you can see VSync gets forced on. Actually I never managed to have it off in fullscreeenwindows (alt tab does nothing).Note 60fps and not 30fps like in the first pic:
This is how it runs after enforcing by script:
Setting from script:
Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen;
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = -1;
In picture how the game runs at start.
Also, pressing alt tab in this case changes nothing and looking at my InGame options the fullscreenmode is actually FullScreen window and not exclusive as it was supposed to be due to the code before.
Still in game, going to the InGame options and switching to Exclusive Full screen goes back to:
So basically I could not find a way to start a game with my settings having either Fullexclusive without Vsync or even better FullScreenWindow without Vsync.
Behaviour seems to be completely erratic.
Note that I can turn on Vsync in Exclusive mode too and it works as expected, behaving like the other pictures above.