Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux/OpenGL: Don't force vsync in the editor #82221

Merged
merged 1 commit into from Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions drivers/egl/egl_manager.cpp
Expand Up @@ -290,12 +290,6 @@ void EGLManager::window_make_current(DisplayServer::WindowID p_window_id) {
}

void EGLManager::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;
Expand Down
6 changes: 0 additions & 6 deletions platform/linuxbsd/x11/gl_manager_x11.cpp
Expand Up @@ -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;
Expand Down