diff options
| author | Ulf Hermann <[email protected]> | 2014-06-30 14:01:38 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2014-07-02 10:41:14 +0200 |
| commit | 5f24d63d89009a91035f586a1d80fa61fcd2d681 (patch) | |
| tree | 660dd93e612bf640885d97ad99783dc6c5a06926 /src/quick/scenegraph/qsgrenderloop.cpp | |
| parent | 708f5bdb2fb8aff65774d5c23933636f549bc316 (diff) | |
Properly collect polish timings from all render loops
Previously the polish timings were collected incorrectly from the
windows render loop and not at all from the basic render loop. By
collecting the polish times at the right places we can get rid of
the 2-argument profile macro as well.
Task-number: QTBUG-39876
Change-Id: I0b4aaf87162c652b8dcea6cd4f54db053f8312fe
Reviewed-by: Gunnar Sletta <[email protected]>
Diffstat (limited to 'src/quick/scenegraph/qsgrenderloop.cpp')
| -rw-r--r-- | src/quick/scenegraph/qsgrenderloop.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/quick/scenegraph/qsgrenderloop.cpp b/src/quick/scenegraph/qsgrenderloop.cpp index fba2114d47..b4b4a6e1bf 100644 --- a/src/quick/scenegraph/qsgrenderloop.cpp +++ b/src/quick/scenegraph/qsgrenderloop.cpp @@ -367,8 +367,10 @@ void QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *window) cd->polishItems(); - if (profileFrames) + if (profileFrames) { polishTime = renderTimer.nsecsElapsed(); + Q_QUICK_SG_PROFILE(QQuickProfiler::SceneGraphPolishFrame, (polishTime)); + } emit window->afterAnimating(); @@ -409,8 +411,8 @@ void QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *window) lastFrameTime = QTime::currentTime(); } - Q_QUICK_SG_PROFILE1(QQuickProfiler::SceneGraphRenderLoopFrame, ( - syncTime, + Q_QUICK_SG_PROFILE(QQuickProfiler::SceneGraphRenderLoopFrame, ( + syncTime - polishTime, renderTime - syncTime, swapTime)); |
