{{newin|[[11.3]]|113|type=function}}
Sets vertical synchronization mode.

== Function ==
=== Synopsis ===
<source lang="lua">
love.window.setVSync( vsync )
</source>
=== Arguments ===
{{param|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). 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 ==
* [[parent::love.window]]
* [[love.window.getVSync]]

[[Category:Functions]]
{{#set:Description=Sets vertical synchronization mode.}}

== Other Languages ==
{{i18n|love.window.setVSync}}