Difference between revisions of "love.window.getVSync"
(Created page with "{{newin|11.3|113|type=function}} Gets current vertical synchronization (vsync). == Function == === Synopsis === <source lang="lua"> vsync = love.window.getVSync( ) </sour...") |
m (→Notes) |
||
Line 11: | Line 11: | ||
=== Returns === | === Returns === | ||
{{param|number|vsync|Current vsync status. 1 if enabled, 0 if disabled, and -1 for adaptive vsync.}} | {{param|number|vsync|Current vsync status. 1 if enabled, 0 if disabled, and -1 for adaptive vsync.}} | ||
− | + | == Notes == | |
This can be less expensive alternative to [[love.window.getMode]] if you want to get current vsync status. | This can be less expensive alternative to [[love.window.getMode]] if you want to get current vsync status. | ||
Latest revision as of 05:21, 20 November 2019
Available since LÖVE 11.3 |
This function is not supported in earlier versions. |
Gets current vertical synchronization (vsync).
Function
Synopsis
vsync = love.window.getVSync( )
Arguments
None.
Returns
number vsync
- Current vsync status. 1 if enabled, 0 if disabled, and -1 for adaptive vsync.
Notes
This can be less expensive alternative to love.window.getMode if you want to get current vsync status.
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