Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.1.0-beta
-
None
-
5977fbfd16f4d2d268dfecc48b1120a1f0dcf004 (qtdeclarative) and cc4aae532d3f74bacaa46127a7a915fb8f283a7d
Description
Qt has added Animators which allows render thread animations when the rest of the application is blocked. However when using these the QML profiler shows no painting is ongoing when the app is blocking the main thread, even though you can see Animator based animations are ongoing.
This example can be profiled to show the problem:
import QtQuick 2.2 Rectangle { id: root width: 500 height: 500 Component { id: text1 Text { text: "Hello world" } } Rectangle { id: rect1 x: 100 y: 100 width: 100 height: 100 color: "blue" } Rectangle { id: rect2 x: 300 y: 100 width: 100 height: 100 color: "orange" } RotationAnimator { target: rect1 from: 0 to: 360 duration: 2000 running: true loops: Animation.Infinite } NumberAnimation { target: rect2; property: "rotation"; from: 0 to: 360 duration: 2000; running: true loops: Animation.Infinite } Loader { id: textLoader } SequentialAnimation { running: true PauseAnimation { duration: 1000 } ScriptAction { script: textLoader.sourceComponent = text1 } } }
Attachments
For Gerrit Dashboard: QTCREATORBUG-11659 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
80390,2 | QmlProfiler: Show multiple rows for animations from different threads | 3.1 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
80391,5 | Register animation profiler callback also from render thread | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |
80392,1 | Record current thread when profiling animations | stable | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |