0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

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.
This commit is contained in:
Kurt Kartaltepe 2022-04-22 19:34:52 -07:00 committed by Georges Basile Stavracas Neto
parent 3883c9e120
commit 855572ed7c

View File

@ -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",