From 855572ed7caa23238d8a21c781fe67d9ddfb814d Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Fri, 22 Apr 2022 19:34:52 -0700 Subject: [PATCH] libobs-opengl: Disable vsync during present Brings X11 EGL in line with Wayland. This prevents you from recording at a higher fps than the monitor where an OBS preview is being displayed. --- libobs-opengl/gl-x11-egl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libobs-opengl/gl-x11-egl.c b/libobs-opengl/gl-x11-egl.c index 5ad27bddd..80ff2afac 100644 --- a/libobs-opengl/gl-x11-egl.c +++ b/libobs-opengl/gl-x11-egl.c @@ -628,6 +628,9 @@ static void gl_x11_egl_device_present(gs_device_t *device) free(xcb_event); } + if (eglSwapInterval(device->plat->edisplay, 0) == EGL_FALSE) { + blog(LOG_ERROR, "eglSwapInterval failed"); + } if (!eglSwapBuffers(device->plat->edisplay, device->cur_swap->wi->surface)) blog(LOG_ERROR, "Cannot swap EGL buffers: %s",