Re-enable throttling, with lower time.
svn path=/trunk/KDE/kdebase/workspace/; revision=725842
This commit is contained in:
parent
a09de80b60
commit
dddcbd06b5
1 changed files with 3 additions and 4 deletions
|
@ -266,11 +266,10 @@ void Workspace::performCompositing()
|
||||||
// The event loop apparently tries to fire a QTimer as often as possible, even
|
// 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
|
// at the expense of not processing many X events. This means that the composite
|
||||||
// repaints can seriously impact performance of everything else, therefore throttle
|
// 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.
|
// is started.
|
||||||
// Disabled now, it decreases smoothness of animations.
|
if( lastCompositePaint.elapsed() < 1 )
|
||||||
// if( lastCompositePaint.elapsed() < 5 )
|
return;
|
||||||
// return;
|
|
||||||
checkCursorPos();
|
checkCursorPos();
|
||||||
if( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage
|
if( repaints_region.isEmpty() && !windowRepaintsPending()) // no damage
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue