PDA

View Full Version : Frame Rate independent animation



Jaerder " Jae686" Sousa
05-03-2010, 06:48 AM
Good Afternoon.

Whats the usual way to keep my OpenGL aplication animation time dependent instead of frame rate dependent ?
(That is , that the animation speed is that same regardless of the frame rate)

Best Regards

Jan
05-03-2010, 08:04 AM
Measure the time-difference from the last frame to this frame and advance your animation by that amount, instead of a fixed step.

Jan.

Jaerder " Jae686" Sousa
05-10-2010, 05:05 AM
Thanks. I've actually never though of it that way :)