GsIncFrame

Increments the frame ID

void GsIncFrame (
        void
)

Arguments

None.

Return Value

None.

Explanation

The global variable PSDCNT is incremented by 1.
PSDCNT is used by GsGetLw(), GsGetLs() and GsGetLws() to determine the validity of the matrix cache when the double buffer is swapped.
PSDCNT is 32 bits in length, and restarts at 1 rather than 0 when it overflows.
GsIncFrame() is automatically called from within GsSwapDispBuff(). If the double buffer is swapped without using GsSwapDispBuff(), but the functions GsGetLw(), GsGetLs() and GsGetLws() are used, GsIncFrame() needs to be called every time the double buffer is swapped.

See Also

GsGetLw(), GsGetLs(), GsGetLws(), GsSwapDispBuff()