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 ===
+
== 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