You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user