Frame tweening - how can I tell spare frametime?

Blitz3D Forums/Blitz3D Programming/Frame tweening - how can I tell spare frametime?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It is supposed to return the current scanline of the display. Its not something I have a lot of confidence in but I suppose you could try it because the millisecs() timer is a bit coarse for accurate frame timing. For instance your refresh rate is 75hz which should give you a frame time of 13.333 millisecs. Something else to bear in mind though is that in fullscreen flip is non blocking. So the wait for Vsync does not occur at flip, which does not force a Vwait at that point, typically it occurs at renderworld in the following frame or maybe even the frame after on more advanced cards? Good for your framerate because the graphics card does not have to hang around waiting for Vsync all the time and can get working on the next frame which is perhaps another reason why fullscreen is faster than windowed mode. Good luck in figuring out how this works in conjunction with frame locked logic though. I figure it's easier to just let it get on with it.