1
General / Re: Unstable fps
« on: April 17, 2016, 02:52:06 am »Does your code also contain setFramerateLimit(), you should not mix these two "modes".
It doesn't, only vsync or a simple loop timed with sf::Time. Also i don't use sf:sleep() due to its precision, nonetheless, on sdl2 i'm able to use SDL_Delay() without any precision issues. How could i achieve this on sfml?
If your code is not able to achieve 60fps on your hardware or contains issues that cause some frames to occasionally take a significantly longer time than other frames. Then neither vsync nor SFML will be able to keep your FPS at 60 nor keep it stable/smooth.
The code i'm using is very simple. You can find it at this page: http://www.sfml-dev.org/tutorials/2.3/start-cb.php Just put one line to enable vsync OR a timer with sf::Time to keep the fps at 60. Anyway, thanks for the heads-up!
Sorry for the bad english!