love.window.getVSync

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