diff options
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index 95409a04f7..ef50d5a89d 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -969,6 +969,7 @@ void QSGThreadedRenderLoop::polishAndSync() QElapsedTimer timer; int polishTime = 0; int waitTime = 0; + int syncTime; if (qquick_window_timing) timer.start(); #endif @@ -1002,7 +1003,8 @@ void QSGThreadedRenderLoop::polishAndSync() RLDEBUG("GUI: - unlocked after sync..."); #ifndef QSG_NO_WINDOW_TIMING - int syncTime = timer.elapsed(); + if (qquick_window_timing) + syncTime = timer.elapsed(); #endif killTimer(m_update_timer); |