diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-05-30 01:28:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-05-30 01:28:59 +0200 |
commit | a3f6864572f5fffd5e4debffe3e6beea146440b3 (patch) | |
tree | 3a265d1988224e4f1d1a0c8cbc7b9e267b57a6c5 /src | |
parent | cd777c1506e20514df4b97345e480051cbaf9693 (diff) |
Fix recording freeze on nvidia when __GL_SYNC_TO_VBLANK is set to 1
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 16b2a06..e8e35b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3535,6 +3535,10 @@ int main(int argc, char **argv) { // nvidia doesn't support vaapi and nvidia-vaapi-driver doesn't support encoding yet. // Let vaapi find the match vaapi driver instead of forcing a specific one. unsetenv("LIBVA_DRIVER_NAME"); + // Some people set this to force all applications to vsync on nvidia, but this makes eglSwapBuffers never return. + unsetenv("__GL_SYNC_TO_VBLANK"); + // Same as above, but for amd/intel + unsetenv("vblank_mode"); dpy = XOpenDisplay(NULL); wayland = !dpy || is_xwayland(dpy); |