VBGamer |
|
Re: VideogameLayer3d (VGL3d) Alpha Demo rene (0 replies, 10 views) (2004-Sep-10) Not nescesarily.. just do something like this (ripped from my physics engine)
updatetime = GetTickCount()
Dim deltatime As Int32 = updatetime - lastupdate
Dim timestep As Single = 1 / IterationsPerSec 'this is actually a constant
Dim iterations As Int32 = deltatime * 0.001 * IterationsPerSec
For k = 0 To iterations
'do stuff
Next k
lastupdate = updatetime |