[Marble-commits] KDE/kdeedu/marble/src/lib

Dennis Nienhüser earthwings at gentoo.org
Mon Jan 4 16:21:14 CET 2010


SVN commit 1069964 by nienhueser:

No unnecessary framerate calculations and signal emissions. BUG: 215482


 M  +6 -3      MarbleWidget.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1069963:1069964
@@ -854,9 +854,12 @@
     customPaint( &painter );
     d->m_map->d->paintOverlay( painter, dirtyRect );
 
-    qreal fps = 1000.0 / (qreal)( t.elapsed() + 1 );
-    d->m_map->d->paintFps( painter, dirtyRect, fps );
-    emit d->m_map->framesPerSecond( fps );
+    if (d->m_map->showFrameRate())
+    {
+        qreal fps = 1000.0 / (qreal)( t.elapsed() + 1 );
+        d->m_map->d->paintFps( painter, dirtyRect, fps );
+        emit d->m_map->framesPerSecond( fps );
+    }
 }
 
 void MarbleWidget::customPaint(GeoPainter *painter)


More information about the Marble-commits mailing list