glXSwapIntervalSGI(3G)
glXSwapIntervalSGI - set a minimum time between buffer swaps
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME glXSwapIntervalSGI - set a minimum time between buffer swaps C SPECIFICATION int glXSwapIntervalSGI( int interval ) PARAMETERS interval Specifies the minimum number of retraces between buffer swaps invoked by glXSwapBuffers. DESCRIPTION glXSwapIntervalSGI is part of the SGI_swap_control extension. glXSwapIntervalSGI causes frames to be displayed at a steady rate, provided the time required to draw each frame can be bounded. It does this by specifying a minimum number of retraces between buffer swaps invoked by glXSwapBuffers. For example, if the interval is 5, the color buffers will be swapped at most once every 5 retraces. The new swap interval takes effect on the first execution of glXSwapBuffers after the execution of glXSwapIntervalSGI. glXSwapIntervalSGI affects only buffer swaps for the current GLX drawable. (Use glXMakeCurrent to make a GLX context and GLX drawable current). Note that glXSwapBuffers may be called with a drawable parameter that is not the current GLX drawable; in this case glXSwapIntervalSGI has no effect on that buffer swap. glXSwapIntervalSGI returns an error code if it fails for any reason. Otherwise, zero is returned. ERRORS GLX_BAD_VALUE is returned if interval is less than or equal to zero. GLX_BAD_CONTEXT is returned if there is no current GLX context. SEE ALSO glXMakeCurrent, glXSwapBuffers.