aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-07-01 16:23:04 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-07-02 10:41:20 +0200
commitbf3594196f7166be6e843679b77210ab5f5da337 (patch)
tree5d77fb3f4cbf8eac224b879baeb74ad85d908a91
parent5f24d63d89009a91035f586a1d80fa61fcd2d681 (diff)
Fix output of swap times for basic render loop
The swap time was treated as absolute by the qCDebug output, but was actually relative. Change-Id: Ia1539b8f8305ca37430022803419eb12a05934cb Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
-rw-r--r--src/quick/scenegraph/qsgrenderloop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgrenderloop.cpp b/src/quick/scenegraph/qsgrenderloop.cpp
index b4b4a6e1bf..b4cfd1c514 100644
--- a/src/quick/scenegraph/qsgrenderloop.cpp
+++ b/src/quick/scenegraph/qsgrenderloop.cpp
@@ -396,7 +396,7 @@ void QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *window)
qint64 swapTime = 0;
if (profileFrames)
- swapTime = renderTimer.nsecsElapsed() - renderTime;
+ swapTime = renderTimer.nsecsElapsed();
if (QSG_LOG_TIME_RENDERLOOP().isDebugEnabled()) {
static QTime lastFrameTime = QTime::currentTime();
@@ -414,7 +414,7 @@ void QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *window)
Q_QUICK_SG_PROFILE(QQuickProfiler::SceneGraphRenderLoopFrame, (
syncTime - polishTime,
renderTime - syncTime,
- swapTime));
+ swapTime - renderTime));
// Might have been set during syncSceneGraph()
if (data.updatePending)