Re-enable throttling, with lower time.

svn path=/trunk/KDE/kdebase/workspace/; revision=725842
This commit is contained in:
Luboš Luňák 2007-10-16 10:17:14 +00:00
parent a09de80b60
commit dddcbd06b5

View file

@ -266,11 +266,10 @@ void Workspace::performCompositing()
// The event loop apparently tries to fire a QTimer as often as possible, even
// at the expense of not processing many X events. This means that the composite
// repaints can seriously impact performance of everything else, therefore throttle
// them - leave at least 5msec time after one repaint is finished and next one
// them - leave at least 1msec time after one repaint is finished and next one
// is started.
// Disabled now, it decreases smoothness of animations.
// if( lastCompositePaint.elapsed() < 5 )
// return;
if( lastCompositePaint.elapsed() < 1 )
return;
checkCursorPos();
if( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage
{