SwapInterval and tweening
BlitzMax Forums/OpenGL Module/SwapInterval and tweening
| ||
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 |
| ||
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 :) |
| ||
The bglSetSwapInterval command might be what you're looking for: http://blitzwiki.org/index.php/BglSetSwapInterval |