Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Vsync has no guarantee of frame rate, only that it aligns with your monitors refresh rate - so if it can fit two frames in before your monitor refreshes, I think it does that. 

The difference between this and the previous version is that previously, when vsync was enabled, I was also limiting the FPS to 60. I removed that in case people have high-refresh-rate monitors and want to see it at 120fps.

I'm using SFML for the rendering side of things, so i might need to take a deep dive into their implementation to find out why this has suddenly gone wrong...

Oh, so that's why it didn't go up to 120 before!

I've been investigating and it seems like it's a driver problem (NVIDIA in my case) and not a SFML one. Turning off "Threaded Optimization" in NVIDIA Control Panel solved it. I guess that's a partial win 😅

Going off on a slight tangent, I've noticed the FPS determine the physics movements and I came across this article that might be helpful to make them consistent 

I hope all of this helps!

thanks very much!

Hey, great catch ! Thanks for sharing. I was opening the Demo model on two versions of rahituber, with stock settings, and seeing 10x CPU use on the newer version seemed crazy ! Threaded Optimization on Nvidia CPL reduced the difference to expected numbers. Perhaps that info would fit nicely in the "known issues" post @rahisaurus ?

Thanks, I'll add that ^^