waittimer(time)

Blitz3D Forums/Blitz3D Programming/waittimer(time)

The parameter for CreateTimer is the amount of FPS you want to have as a maximum for your app.

Const MAX_FPS% = 60

Global mmFrame = CreateTimer(MAX_FPS)

While (Not (KeyHit(1)))
  WaitTimer(mmFrame)
Wend

FreeTimer mmFrame


If you want to have a framerate of 60 fps, use the code above.