1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Enable Vsync via Compositor by default

This feature was added in #33414 but it was disabled by default.
Now that it got some testing, it's probably safe to enable it
by default.
This commit is contained in:
Hugo Locurcio
2020-01-09 22:20:00 +01:00
parent 76678b2609
commit 9600fd5dde
4 changed files with 5 additions and 4 deletions

View File

@@ -1028,7 +1028,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
// window compositor ("--enable-vsync-via-compositor" or
// "--disable-vsync-via-compositor") was present then it overrides the
// project setting.
video_mode.vsync_via_compositor = GLOBAL_DEF("display/window/vsync/vsync_via_compositor", false);
video_mode.vsync_via_compositor = GLOBAL_DEF("display/window/vsync/vsync_via_compositor", true);
}
OS::get_singleton()->_vsync_via_compositor = video_mode.vsync_via_compositor;