Important: Please read the Qt Code of Conduct -

High CPU usage with basic QML animation

  • Hello,

    I was seeing bad performance and high cpu usage in my QML based apps, as much as 50-100% on iOS (device or simulator), and even desktop. After optimising my code as much as I could, I decided to write the simplest possible animated app to isolate the root cause.

    Strangely, even with just a rotating label, I still get 17-20% cpu usage consistently. My ObjC based native iOS app which rotates a png image barely registers above 1% cpu usage. There isn't much code (see below) to profile, and I am not able to make sense of tracing the compiled app using Instruments.

    Any help will be appreciated.

    Code below:

    import QtQuick 2.5
    import QtQuick.Window 2.2
    Window {
        visible: true
        MouseArea {
            anchors.fill: parent
            onClicked: {
        Text {
            text: qsTr("Hello World")
            anchors.centerIn: parent
            NumberAnimation on rotation {
                from: 0
                to: 360
                duration: 4000
                loops: Animation.Infinite

  • I have the same problem.

Log in to reply