What does Flip really do?

BlitzMax Forums/BlitzMax Programming/What does Flip really do?

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.

OK, Flip can do one of two things, swap the backbuffer for the frount buffer imediatly Flip 0, or wait for a screen refresh (often 16Milli) Flip 1.

So do flip -1 and see what happens

Flip swap the front and back buffers of the current graphics objects.

If sync is 0, then the flip occurs as soon as possible. If sync is 1, then the flip occurs on the next vertical blank.

If sync is -1 and the current graphics object was created with the Graphics command, then flips will occur at the graphics object's refresh rate regardless of whether or not the graphics hardware supports such a refresh rate.

If sync is -1 and the current graphics object was NOT created with the Graphics command, then the flip will occur on the next vertical blank.


If Flip 1,0 and -1 are still giving a big hit, then post some code, cos maybe its a graphics card issue

Or And Im not sure about this, so we'll wait for the big boys, but if you have done lots of Drawpoly and stuff maybe Opengl and Directx doesnt do any of the drawing untill flip. That is that maybe we are just telling the card what we want, and then flip is waiting for the card to do it. I agree it would be nice for a better breakdown, but normaly flip 0 makes things lots and lots faster for me