Timing, How Does Your App Fare?

Miscellaneous Forums/General Discussion/Timing, How Does Your App Fare?

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.

Waittimer actually gives a return value of how many ticks have passed.
Ah, another missing fact from the docs! So, do you do something like this, in your main loop?

While Not KeyHit(1)

  updates = WaitTimer(fps_timer)

  For n = 1 To updates
    update_game()
  Next
				
  render_game()
				
  VWait : Flip False

Wend


I just tried this method and it does keep the game speed constant, regardless of FPS, but, it's pretty jerky. :/ I think my background tasks are mucking things up.