Flip False ?

Miscellaneous Forums/Win32 Discussion/Flip False ?

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.

You've got to be careful with swap intervals. There are all sorts of reasons why you'd be getting different results on different machines.

bglSetSwapInterval isn't supported by all cards and operating systems. It should return True if supported, False otherwise.

If you use Graphics...Flip then there are timing issues to consider. If Graphics can set the screen hertz to the specified value, it will call bglSetSwapInterval(1) and rely on the vsync to keep the game running at that refresh rate. In that case you can override bglSetSwapInterval with your own value. If Graphics can't set the screen hertz to the desired value it will call bglSetSwapInterval(0) (i.e. don't wait for a vsync) then Flip will pause for a few millisecs before calling bglSwapBuffers() in order to keep the game running at the desired refresh rate. If you override bglSetSwapBuffers in this case your game may have the timing and the vsync to wait for.

If you want to completely ignore the timing mechanism of Graphics...Flip, use bglSwapBuffers() instead of Flip.

Oh, and check out http://blitzwiki.org/index.php/BglSetSwapInterval