Hello there. I know this is a topic that is talked about a lot but I couldn't find too much about it in relation to SFML 2.0. So basically I just want to control the speed of my game so that it runs the same(and smoothly) on all machines. Right now my object moves at slightly different speeds depending on how fast my comp is running. I know about FrameLimiter but this only limits the amount of frames that are drawn it doesn't control game speed.
so I need...
Gameloop()
{
Input();
Update();
//do some check here
Draw();
//The Thinking functions need to be executed a certain number of times per second on every computer
//as long as these thinking function are caught up draw away!(within 60 fps)
}
I want to make it clear that I don't want a "velocity" fix. I really don't like this change in velocity depending on time solution. I would much rather have a fixed "time step"(as I've seen cleverly named in other posts) to my entire program.
So are there any functions or posts you could point me to to get this figured out? I don't need the logic so much as the code and syntax. I can figure it all out from there.
Thanks for any help you can give!
(Hopefully other people need this too, or don't know they need it till now
)
edit: I found this article
http://www.koonsolo.com/news/dewitters-gameloop/ which gave me all the info I need gl!