Time based modeling algorithm for Games

Level:
Level3

Putting a frame cap on your game is NOT the only method available to you. Let the computer crank out as many FPS as it can by using Time Based Modeling!

The key to this method is determining the time elapsed since the last frame was displayed. You then use this value in all of your game calculations, effectively giving weight according to the frame rate attained. Also, you'll have to describe your game's "speed" values in units per second (ie. pixels per second) rather than units per frame. If you would like a step by step guide on how to do this visit our Time Based Modiling in VB6 Tutorial.

 

Download the Visual Basic 6 sample source code  

If you enjoyed this post, subscribe for updates (it's free)