Set GL_MaxFramesAllowed=1 instead of GL_YIELD=usleep

This commit is contained in:
Daniel Kwan
2021-06-09 01:11:11 -04:00
parent e92403bd67
commit e8147e0658

View File

@@ -15,7 +15,8 @@
/// Apply driver specified global workarounds. It's safe to call this multiple times.
void apply_driver_workarounds(struct session *ps, enum driver driver) {
if (driver & DRIVER_NVIDIA) {
setenv("__GL_YIELD", "usleep", true);
// setenv("__GL_YIELD", "usleep", true);
setenv("__GL_MaxFramesAllowed", "1", true);
ps->o.xrender_sync_fence = true;
}
}