Why not have:
So you can faster computers can have high FPS.
Timer#=MilliSecs() GameSpeed#=0 Frames=30 While Not KeyDown(1) ; Main loop of game GameSpeed#=((MilliSecs()-Timer#)/Float(Frames)) Timer#=MilliSecs() UpdateGame#(GameSpeed#);Players, etc TOKSIM_Advance(GameSpeed#) RenderWorld() Flip Wend End
So you can faster computers can have high FPS.