armory icon indicating copy to clipboard operation
armory copied to clipboard

Weird Vsync behaviour

Open Simonrazer opened this issue 11 months ago • 5 comments

Description When Vsync is turned of, I expect the framerate to be uncapped. To test this I call the game update on render, as the FPS counter of the Debug View was shown to not be reliable. The FPS seems to be uncapped, but only if the window is not in Focus, and kha reports VSync to still be turned on. See the attached video. It is a bit hard to see due to the low frame rate, but the cube spins a lot faster when the window is not focused. If it were the other way around, the fps being unlocked while the game is in the background, everything would be fine.

This happens regardless if Vsync is enabled or not. All this is regarding Krom. To Reproduce Have a way to reliably measure FPS. and notice a difference beteween focused and unfocused window behaviour

System Blender: 3.6.1LTS Armory: current ArmSDK OS: Win 10 Graphics card: GTX 1060

vsync.zip

Simonrazer avatar Jul 30 '23 13:07 Simonrazer