Game timing?

Monkey Forums/Monkey Programming/Game timing?

Sammy(Posted 2012) [#1]
How is game loop timing handled in Monkey?

I see you can set the update rate but is the render rate independent of this? That is, will the rendering be interpolated if the rendering part is running faster than the update rate?


AdamRedwoods(Posted 2012) [#2]
From the wiki:
http://blitz-wiki.appspot.com/SetUpdateRate
"OnRender is also called at the same frequency if possible (after each OnUpdate), meaning SetUpdateRate effectively also sets the target frames per second."

...I'll also add that if OnUpdate() takes too long, it will skip OnRender() up to 7 times I believe.

Rendering is NOT interpolated.


Sammy(Posted 2012) [#3]
Thanks for that Adam, better the devil you know I suppose.