Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.48k stars 171 forks source link

VSync-like behaviour even tho it is off, but only when the App Window is focused #1434

Closed Simonrazer closed 1 year ago

Simonrazer commented 1 year ago

Describe the bug Framerate of the application is limited to 60 FPS even though Vsync is off, but only if the app's Window is focused.

To Reproduce Turn off VSync in your Project Focus and Unfocus the Window Observe the difference in FPS, it should be >60 when unfocused.

Expected behavior There not to be a difference and the FPS to always be unlocked when VSync is off.

Screenshots image High FPS numbers: Window not in focus Low: Window in focus

Execution Environment:

Minimal example:

Main.zip

RobDangerous commented 1 year ago

That's not the behavior I am seeing. Please don't open issues in my repositories that haven't been checked with my versions of Kha and Krom.

Simonrazer commented 1 year ago

That's a shame. I switched to your beautiful version of Kha/Krom, and it's just as non-functional.

RobDangerous commented 1 year ago

So why not create an issue about that?