Function Swap-Interval
(
swap-interval < interval > )
Parameters
interval
Minimum number of monitor vertical retraces between each buffer swap performed by
glfwSwapBuffers. If interval is zero, buffer swaps will not be synchronized to the vertical
refresh of the monitor (also known as âVSync offâ).
Description
The function selects the minimum number of monitor vertical retraces that should occur between two
buffer swaps. If the selected swap interval is one, the rate of buffer swaps will never be higher than the
vertical refresh rate of the monitor. If the selected swap interval is zero, the rate of buffer swaps is only
limited by the speed of the software and the hardware.
Notes
This function will only have an effect on hardware and drivers that support user selection of the swap
interval.