mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
The vsync field in t.window and love.window.setMode is now an integer.
0 disables vsync, 1 sets it to sync every screen refreshes, 2 sets it to sync every 2 screen refreshes (effectively setting the framerate to half the monitor's refresh rate), etc. As a special case, -1 also attempts to use adaptive vsync (vsync enabled when FPS is >= monitor's refresh rate, disabled whe not) if the driver supports it. --HG-- branch : minor
This commit is contained in:
@@ -203,7 +203,7 @@ struct WindowSettings
|
||||
{
|
||||
bool fullscreen = false;
|
||||
Window::FullscreenType fstype = Window::FULLSCREEN_DESKTOP;
|
||||
bool vsync = true;
|
||||
int vsync = 1;
|
||||
int msaa = 0;
|
||||
bool resizable = false;
|
||||
int minwidth = 1;
|
||||
|
||||
Reference in New Issue
Block a user