swapinterval(3G)swapinterval(3G)NAMEswapinterval - defines a minimum time between buffer swaps
C SPECIFICATION
void swapinterval(i)
short i;
PARAMETERS
i expects the number of retraces to wait before swapping the front and
back buffers. The default interval is 1.
DESCRIPTIONswapinterval defines a minimum number of retraces between buffer swaps.
For example, for a swap interval of 5, the system refreshes the screen at
least five times between successive buffer swaps. swapinterval changes
frames at a steady rate if a new image can be created within one swap
interval.
Like the swapbuffers and mswapbuffers commands that it affects,
swapinterval is ignored by framebuffers in single buffer mode.
A single swap interval counter is shared by the normal, overlay, and
underlay framebuffers. The interval is enforced between all buffer swap
requests, regardless of which framebuffers are swapped.
SEE ALSO
doublebuffer, drawmode, mswapbuffers, swapbuffers
NOTE
This routine is available only in immediate mode.
Page 1