love.window.setVSync

Available since LÖVE 11.3
This function is not supported in earlier versions.

Sets vertical synchronization mode.

Function

Synopsis

love.window.setVSync( vsync )

Arguments

number vsync
VSync number: 1 to enable, 0 to disable, and -1 for adaptive vsync.

Returns

Nothing.

Notes

  • Not all graphics drivers support adaptive vsync (-1 value) and values more than 1 (vsync at other intervals). In that case, it will be automatically set to 1.
  • It is recommended to keep vsync activated if you don't know about the possible implications of turning it off.
  • This function doesn't recreate the window, unlike love.window.setMode and love.window.updateMode.

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.window.setVSync