Skip to main content
gamedev.net
🔒 Locked

Static FPS rate?

Started by Xeno 0 replies 200+ views
Original Post
Xeno
Xeno
im just wondering , but , is it OK to calculate the avarage FPS rate and the make all the movement calculations by the avarage FPS rate that i got? , coz i think that then the game or program that u making will move more smoothly... ************************* "Everything you know is wrong" - Bono *************************

- Goblineye Entertainment

------------------------------- Goblineye Entertainment------------------------------
SikCiv
SikCiv
Going off your FPS variable in my opinion would be less precise as the FPS is usually quite inconsistant. I guess if u were blitting exactly the same blits at every frame it would be alright, but in reality, anything and anything can pop up on the screen at anytime, which would cause problems.

Also, the FPS is calculated after the flip, so u would be out by one frame.

Just calculate the sprite positions when u call your UpdateFrame function, or use a Multimedia Timer (thats how I do it ) which updates all the sprites 100 times a second. Im using three threads in my game at the moment, and the game runs very smooth even on an old Pentium .
  Downloads:  ZeroOne Realm

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.