All the same speed?

Blitz3D Forums/Blitz3D Beginners Area/All the same speed?

It depends if you're talking about a 2D or 3D game. There are different approaches to each.

That said, the WaitTimer approach is pretty simple (if far from ideal.) However that code complicates things. In that code the game is updated more often than it is rendered, kind of a silly approach for most games (although the additional updates between rendered frames makes a difference for stuff like calculating physics.) To just have it update and render 30 times/second it would be:

GameTimer=CreatTimer(30)

While Not KeyHit(1)
WaitTimer(GameTimer)
UpdateGame()
RenderGame()
Wend