diff options
author | Josh Arenson <[email protected]> | 2014-08-04 09:42:27 -0700 |
---|---|---|
committer | Gunnar Sletta <[email protected]> | 2014-09-12 11:47:58 +0200 |
commit | 5a9f0131f8c0b7424a4d323b0f65237206be45ea (patch) | |
tree | dc42576b1e82c5347a7191238c7218247664b2dd | |
parent | 4d07bf91ed2d36aee9178ef48508c16277fbb318 (diff) |
Move syncTimer measurment to the correct place.5.3
syncTimer was including the time spent waiting for VSYNC on unchanged
frames. This was causing the reported value to be much higher than expected.
Task-number: QTBUG-40556
Change-Id: Ife759b4e27faf2124ab330be8d1f42d15c4d2d33
Reviewed-by: Gunnar Sletta <[email protected]>
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index c17eb916ae..1cfc689659 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -586,6 +586,10 @@ void QSGRenderThread::syncAndRender() QSG_RT_DEBUG(" - update pending, doing sync"); sync(); } +#ifndef QSG_NO_RENDER_TIMING + if (profileFrames) + syncTime = threadTimer.nsecsElapsed(); +#endif if (!syncResultedInChanges && !(repaintRequested)) { QSG_RT_DEBUG(" - no changes, rendering aborted"); @@ -595,10 +599,6 @@ void QSGRenderThread::syncAndRender() return; } -#ifndef QSG_NO_RENDER_TIMING - if (profileFrames) - syncTime = threadTimer.nsecsElapsed(); -#endif QSG_RT_DEBUG(" - rendering starting"); QQuickWindowPrivate *d = QQuickWindowPrivate::get(window); |