Wait for all XRender requests to be actually sent and processes, not just
queued. svn path=/branches/work/kwin_composite/; revision=606788
This commit is contained in:
parent
277683c4f0
commit
f551826ae2
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ void ShowFpsEffect::paintX( int fps )
|
|||
void ShowFpsEffect::postPaintScreen()
|
||||
{
|
||||
effects->postPaintScreen();
|
||||
if( dynamic_cast< SceneXrender* >( scene ))
|
||||
XSync( display(), False ); // make sure all rendering is done
|
||||
paints[ paints_pos ] = t.elapsed();
|
||||
if( ++paints_pos == NUM_PAINTS )
|
||||
paints_pos = 0;
|
||||
|
|
Loading…
Reference in a new issue