Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Animation is running very fast on certain mobile device
Forum Updated to NodeBB v4.3 + New Features

Animation is running very fast on certain mobile device

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 286 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vinoth Rajendran4
    wrote on last edited by Vinoth Rajendran4
    #1

    Hi All,

    I was trying to perform rotation animation and I want it to perform for 8 seconds. But with latest mobile (eg. Android 13, Samsung S22 ultra), I could see animation gets completed within 4 seconds.

    But with older android mobile(Android 11) or in Desktop , I could see my animation running for 8 seconds.

    I am using Qt 5.15.2.

    code snippet:

    Window {
        id: root
        width: 400
        height: 400
        visible: true
    
        Rectangle {
            anchors {
                top: parent.top
            }
    
            width: 50
            height: 50
            color: "black"
    
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    anim.start()
                }
            }
        }
    
        Rectangle {
            anchors.centerIn: parent
            width: 50
            height: 50
            color: "black"
    
            NumberAnimation on rotation {
                id: anim
                from: 0
                to: 360
                loops: 10
                running: false
                duration: 800
            }
    
        }
    }
    

    Can some one guide me, why on certain mobile device , Animation running duration is varied ?

    Do we have any known issue documented somewhere related to it ?

    L 1 Reply Last reply
    1
    • V Vinoth Rajendran4

      Hi All,

      I was trying to perform rotation animation and I want it to perform for 8 seconds. But with latest mobile (eg. Android 13, Samsung S22 ultra), I could see animation gets completed within 4 seconds.

      But with older android mobile(Android 11) or in Desktop , I could see my animation running for 8 seconds.

      I am using Qt 5.15.2.

      code snippet:

      Window {
          id: root
          width: 400
          height: 400
          visible: true
      
          Rectangle {
              anchors {
                  top: parent.top
              }
      
              width: 50
              height: 50
              color: "black"
      
              MouseArea {
                  anchors.fill: parent
                  onClicked: {
                      anim.start()
                  }
              }
          }
      
          Rectangle {
              anchors.centerIn: parent
              width: 50
              height: 50
              color: "black"
      
              NumberAnimation on rotation {
                  id: anim
                  from: 0
                  to: 360
                  loops: 10
                  running: false
                  duration: 800
              }
      
          }
      }
      

      Can some one guide me, why on certain mobile device , Animation running duration is varied ?

      Do we have any known issue documented somewhere related to it ?

      L Offline
      L Offline
      lemons
      wrote on last edited by
      #2

      I did only observe the same when setting the animation factor to 0.5x in developer options.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved