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:
Thomas Lübking 2015-10-09 18:47:14 +02:00
parent 0788890233
commit 8bea96d701

View file

@ -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();