/pimp mode engaged. No not really, have a look at this: http://www.gaffer.org/game-physics/fix-your-timestep/
If that's too much then try Delta Time, a search should reveal many good examples. I may have posted the fixed rate logic a few times but I don't where, sorry, try a search,
Don't rely on vsync in full-screen mode as some people have it turned off.
Also I think Dreamora meant "frame INdependent code" as your code is currently frame dependent and you need to change it.
Finally check out my framework ;-)
If that's too much then try Delta Time, a search should reveal many good examples. I may have posted the fixed rate logic a few times but I don't where, sorry, try a search,
Don't rely on vsync in full-screen mode as some people have it turned off.
Also I think Dreamora meant "frame INdependent code" as your code is currently frame dependent and you need to change it.
Finally check out my framework ;-)