From dddcbd06b51b335b2402f8357454b45767473f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 16 Oct 2007 10:17:14 +0000 Subject: [PATCH] Re-enable throttling, with lower time. svn path=/trunk/KDE/kdebase/workspace/; revision=725842 --- composite.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/composite.cpp b/composite.cpp index 4e53affec4..6be611eecc 100644 --- a/composite.cpp +++ b/composite.cpp @@ -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 {