wait for GL after swapping
otherwise at least on the nvidia blob the swapping doesn't block even for double buffering REVIEW: 125659 BUG: 346275 CCBUG: 351700 FIXED-IN: 5.5
This commit is contained in:
parent
0788890233
commit
8bea96d701
1 changed files with 4 additions and 0 deletions
|
@ -649,6 +649,10 @@ void GlxBackend::present()
|
||||||
}
|
}
|
||||||
setBlocksForRetrace(result == 'd');
|
setBlocksForRetrace(result == 'd');
|
||||||
}
|
}
|
||||||
|
} else if (blocksForRetrace()) {
|
||||||
|
// at least the nvidia blob manages to swap async, ie. return immediately on double
|
||||||
|
// buffering - what messes our timing calculation and leads to laggy behavior #346275
|
||||||
|
glXWaitGL();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
waitSync();
|
waitSync();
|
||||||
|
|
Loading…
Reference in a new issue