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>
qint64 swapTime = 0;
if (profileFrames)
- swapTime = renderTimer.nsecsElapsed() - renderTime;
+ swapTime = renderTimer.nsecsElapsed();
if (QSG_LOG_TIME_RENDERLOOP().isDebugEnabled()) {
static QTime lastFrameTime = QTime::currentTime();
Q_QUICK_SG_PROFILE(QQuickProfiler::SceneGraphRenderLoopFrame, (
syncTime - polishTime,
renderTime - syncTime,
- swapTime));
+ swapTime - renderTime));
// Might have been set during syncSceneGraph()
if (data.updatePending)