Game timing?
Monkey Forums/Monkey Programming/Game timing?
| ||
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? |
| ||
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. |
| ||
Thanks for that Adam, better the devil you know I suppose. |