in game timers with blitz3d

Blitz3D Forums/Blitz3D Programming/in game timers with blitz3d

you make a timer using createtimer() right? to keep a 3d game running at a constant rate, do you code something like the example below or do you pick a different method close to the one below?


;set up variables
timer = createtimer(60)

;game loop
frames = waittimer(timer)

for k = 0 to frames
UpdateLogic()
UpdateWorld()
next

;end of game loop