diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-08-07 10:07:34 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-07 11:00:32 +0200 |
commit | 9acb48a64ec6ca133f09e0757ff9f2359f55c983 (patch) | |
tree | 22c29d718ae26d4d2247eb4cb751c802620fb5a9 | |
parent | 503a45b2c1167c47594aab2d1442465aa521cccb (diff) |
Stop the update timer when no windows are visible
Change-Id: Ib9758a99891829d9bec81996687373d08ecfa055
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index 1e0d7c5776..15b6bdc52a 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -963,8 +963,11 @@ void QSGThreadedRenderLoop::releaseResources(QQuickWindow *window, bool inDestru void QSGThreadedRenderLoop::polishAndSync() { - if (!anyoneShowing()) + if (!anyoneShowing()) { + killTimer(m_update_timer); + m_update_timer = 0; return; + } RLDEBUG("GUI: polishAndSync()"); |