diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-05-30 01:26:25 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-05-30 01:26:25 +0200 |
commit | 0d558a36af0d708eac1ea6aa63181d2a0633557c (patch) | |
tree | fbe299cfeece9c9e89957f9eb5d9b21c423a523c /src/main.cpp | |
parent | fe690fa38a3f85cba7dc7d18a35ca970081e651c (diff) |
Fix recording freeze on nvidia when __GL_SYNC_TO_VBLANK is set to 1
Diffstat (limited to 'src/main.cpp')
-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 52849de..074e7e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1659,6 +1659,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"); if(argc <= 1) usage_full(); |