SFML community forums
Help => General => Topic started by: Mad Engineer on February 17, 2013, 06:10:53 pm
-
So i have problem with my game. It works very well on my computer. But when i play it on slower computer it just runs slow, and if i play it on faster computer everything moves faster. So my question is, what is the best way to limit loop per sec (fps) to 60 so it can run at the same speed on all computers ?
-
You probably want to use, window.setFramerateLimit().
Besides that you should make your movement code framerate independent.