Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38523

Animation not smoothly with Qt Quick 2.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.2.1, 5.3.0 Beta1
    • None
    • OS: Linux Buildroot 3.2.0 armv7l GNU/Linux
      Compiler: arm-linux-gnueabihf-gcc 4.7.3
      Hardware: AM3358@500-720MHz, 128MB DDR2 RAM, LCD resolution 320x480, RGB16Bit

      Simple animations are not rendered smoothly as it was with Qt 4.8.0 (Qt Quick 1.0).

      The CPU load seems to be too high even if there is nothing or little to (re)paint.

      Running the following QML code shows the animation issue (causes a CPU load of 65% with Qt 5.2.1 and 15% with Qt 5.3.0-beta on our environment!):

      import QtQuick 2.2
       
      Rectangle {
          color: "white"
          width: 320
          height: 480
          Grid {
              x: 10
              y: 10
              columnSpacing: 10
              rowSpacing: 10
              columns: 3
              Repeater {
                  model: 12
                  Rectangle {
                      id: rect
                      width: 90
                      height: 90
                      color: "dodgerblue"
                      smooth: true
                      antialiasing: true
                      Text {
                          text: qsTr("Icon")
                          anchors.centerIn: parent
                      }
                      SequentialAnimation on rotation {
                          id: rotate
                          NumberAnimation { to:  2; duration: 60 }
                          NumberAnimation { to: -2; duration: 120 }
                          NumberAnimation { to:  0; duration: 60 }
                          loops: Animation.Infinite
                          alwaysRunToEnd: true
                          running: false
                      }
                      Component.onCompleted: rotate.start();
                  }
              }
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            taferl Bernd Schöfmann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes