GsSwapDispBuff

Swaps double buffers

void GsSwapDispBuff (
        void
)

Arguments

None.

Return Value

None.

Explanation

The display buffer and drawing buffer that were defined using GsDefDispBuff() are swapped.
Swapping is usually performed immediately after the start of the vertical blanking interval.
GsSwapDispBuff() performs the following functions:
  1. Sets display starting address
  2. Cancels blanking
  3. Sets double buffer index
  4. Switches two-dimensional clipping
  5. Sets GTE or GPU offset
  6. Increments PSDCNT
Note: Double buffering is implemented using an offset. The third argument of GsInitGraph() determines whether the offset is managed by the GTE or the GPU.

Notes

This function does not execute correctly if it is called when GPU drawing is in progress.
ResetGraph(1) should be used to terminate any current drawing process or DrawSync(0) should be used to wait until drawing is completed before this function is called.

See Also

GsDefDispBuff()