~vanvugt/compiz-plugins-main/fix-930192

« back to all changes in this revision

Viewing changes to animation/src/animation.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-20 10:33:02 UTC
  • Revision ID: daniel.van.vugt@canonical.com-20120320103302-4qb5azehfxwmrqn4
Fix stuttering animations on large/fullscreen windows by using the higher
performance rendering method (full screen damage). (LP: #930192)

Show diffs side-by-side

added added

removed removed

Lines of Context:
901
901
void
902
902
PrivateAnimWindow::damageThisAndLastStepRegion ()
903
903
{
 
904
#ifdef COMPIZ_OPENGL_SWAPBUFFERS_ALWAYS   // when LP: #901097 is fixed
904
905
    // Find union of the regions for this step and last step
905
906
    CompRegion totalRegionToDamage (mStepRegion + mLastStepRegion);
906
907
 
907
908
    mPAScreen->cScreen->damageRegion (totalRegionToDamage);
 
909
#else
 
910
    // Ugly fix for LP: #930192 while LP: #901097 is not resolved
 
911
    mPAScreen->cScreen->damageScreen ();
 
912
#endif
908
913
}
909
914
 
910
915
CompOutput &