SwapInterval and tweening

BlitzMax Forums/OpenGL Module/SwapInterval and tweening

Rob Pearmain(Posted 2005) [#1]
How easy is it to work out how much time has gone between the last screen update and the moving of objects, so that I can have a delta and move objects by that amount, thus having a steady say 30 Frames per second etc, like in Blitz3D RenderTween


AntonyWells(Posted 2005) [#2]
Not sure if it'll be of use for what you have in mind, but mark's castle frame limiting stuff works 100% the same without tweening involved.

As long as your entities etc move at a consistant rate, just lump any code that would/could move them into the tick loop, and it'll be synced. I use it in rifa in fact :)


teamonkey(Posted 2005) [#3]
The bglSetSwapInterval command might be what you're looking for: http://blitzwiki.org/index.php/BglSetSwapInterval