mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Set GL_MaxFramesAllowed=1 instead of GL_YIELD=usleep
This commit is contained in:
parent
e92403bd67
commit
e8147e0658
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue