Name
Flip -- flip front and back buffers (V2.0)
Synopsis
Flip([sync])
Function
This command brings the back buffer to the front and makes the front buffer the back buffer so that you can draw the next screen update.

Starting with Hollywood 5.0, there is an optional argument called sync. If this is set to False, Flip() will not wait for the vertical refresh but will draw the back buffer immediately. This is useful if you would like to refresh the double buffer more often than the refresh rate of the monitor. If not specified, sync defaults to True which means that Flip() will synchronize its double buffer with the monitor refresh.

Please note that Hollywood might also fall back to single buffering on some systems. Therefore, it is not safe to assume that calling Flip() will really switch buffers. It could also just draw the single buffer and then simply let you draw on it again.

See BeginDoubleBuffer for more information on double buffering and an example.

Inputs
sync
optional: whether or not to synchronize double buffer with monitor refresh (defaults to True) (V5.0)
Example
See BeginDoubleBuffer


Show TOC