Merge pull request #82221 from Riteo/linux-ogl-no-vsync-override

Linux/OpenGL: Don't force vsync in the editor
This commit is contained in:
Rémi Verschelde 2023-09-26 13:45:12 +02:00
commit 48bee5c8ef
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -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;