diff options
author | Riteo <riteo@posteo.net> | 2023-09-24 04:35:06 +0200 |
---|---|---|
committer | Riteo <riteo@posteo.net> | 2023-09-24 04:36:58 +0200 |
commit | 4fd6777cf461b1066e1a4428a746e8f8e99d4d9a (patch) | |
tree | 4a28dacf9ed38e4a5b413d9b145c6cf7e9d1d596 /platform/linuxbsd | |
parent | c12d63556b5c1da03a00dd4c45c40e60bd8d68c2 (diff) | |
download | redot-engine-4fd6777cf461b1066e1a4428a746e8f8e99d4d9a.tar.gz |
Linux/OpenGL: don't force vsync in the editor
I couldn't tell whether this has an actual purpose and it feels more
like a debug remnant.
We also need to be able to disable vsync in the editor for the WIP
Wayland backend (in the EGL driver) as it does manual frame throttling.
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/x11/gl_manager_x11.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/platform/linuxbsd/x11/gl_manager_x11.cpp b/platform/linuxbsd/x11/gl_manager_x11.cpp index 25c4272607..95947301cf 100644 --- a/platform/linuxbsd/x11/gl_manager_x11.cpp +++ b/platform/linuxbsd/x11/gl_manager_x11.cpp @@ -347,12 +347,6 @@ Error GLManager_X11::initialize(Display *p_display) { } void GLManager_X11::set_use_vsync(bool p_use) { - // force vsync in the editor for now, as a safety measure - bool is_editor = Engine::get_singleton()->is_editor_hint(); - if (is_editor) { - p_use = true; - } - // we need an active window to get a display to set the vsync if (!_current_window) { return; |