Difference between revisions of "love.window.setVSync"
(Created page with "{{newin|11.3|113|type=function}} Sets vertical synchronization mode without recreating the window. == Function == === Synopsis === <source lang="lua"> love.window.setVSyn...") |
m (Notes from h3 to h2) |
||
Line 1: | Line 1: | ||
{{newin|[[11.3]]|113|type=function}} | {{newin|[[11.3]]|113|type=function}} | ||
− | Sets vertical synchronization mode | + | Sets vertical synchronization mode. |
== Function == | == Function == | ||
Line 11: | Line 11: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
− | + | ||
+ | == Notes == | ||
* Not all graphics drivers support adaptive vsync (-1 value). In that case, it will be automatically set to 1. | * 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]]. | * This function doesn't recreate the window, unlike [[love.window.setMode]] and [[love.window.updateMode]]. | ||
Revision as of 13:02, 26 December 2018
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). 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
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info