Spec-Zone.ru › LÖVE

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

  • love.window
  • love.window.setVSync


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.window.getVSync

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API