Smart Frame Limiting

Blitz3D Forums/Blitz3D Programming/Smart Frame Limiting

I think it's supposed to be:

For k=1 To ticks
time=time+period
If k=ticks Then CaptureWorld
UpdateGame()
UpdateWorld
Next

The idea is that you run the updategame function enough times to keep up with it's fps. The captureworld/tweening is an attempt at making it more exact. For instance, if the game is suppossed to run at 60 computational frames per second, and it's doing 50, it would add an extra tick, yet set the tween to a lower value. In the end however, MadMax's method is faster and more accurate. It just requires more planning, and more coding.