proper game timing

BlitzMax Forums/BlitzMax Programming/proper game timing

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Junkster, that sounds like a good idea!
But, it's hard to translate to practicle use I guess.
Because: you need to compensate moving objects by multiplying with a factor (deltaTime) OR you need to tween movement (frame tweening).
What I mean that the following is not possible, because it will result in an actual choppier playback:

Graphics 800,600,32,75
SetVirtualFPS 60;
' so, we run at 75 Hertz, and set the GameClock to 60.


in the main game:

CompensateVirualFPS;
UpdateWorld
Renderworld
Flip


I guess something would be possible on the UpdateWorld front, but with 2D I don't know.