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

QtQuick Animations run 3 times too fast on OSX 10.8 in a virtual machine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.7, 5.12
    • Quick: SceneGraph
    • OSX 10.8 with xcode 5.1 in a virtual machine
    • macOS

    Description

      This can easily be seen from this test result: http://testresults.qt.io/logs/qt/qtdeclarative/1957836badf0d0c4b33c298e5964d2be21dabf10/OSXOSX_10_08x86_64OSXOSX_10_08x86_64ClangRelease/d905bb84701d5cebbe27a4a3919e95c7ad6fa18f/testrun_1452096037/testlog.txt.gz

      You can reproduce the test by running the following QML in qmlscene:

      import QtQuick 2.0
      
      Rectangle {
          width: 100
          height: 100
          color: "blue"
      
          RotationAnimation on rotation {
              duration: 3600
              loops: Animation.Infinite
              from: 0
              to: 360
          }
      
          Timer {
              interval: 300
              repeat: true
              running: true
              property int prevHit: -1
              property int prevRotation: -1
              onTriggered: {
                  var date = new Date;
                  var millis = date.getMilliseconds()
      
                  if (prevHit < 0) {
                      prevHit = millis;
                      prevRotation = parent.rotation
                      return;
                  }
      
                  var milliDelta = millis - prevHit;
                  if (milliDelta < 0)
                      milliDelta += 1000;
                  console.log(milliDelta, "milliseconds ");
                  prevHit = millis;
      
                  var delta = parent.rotation - prevRotation;
                  if (delta < 0)
                      delta += 360
                  prevRotation = parent.rotation
                  console.log(delta, "degrees ");
              }
          }
      }
      

      It should take roughly 300ms per 30 degrees, but it takes only a bit more than 100ms.

      Note that it doesn't happen on OSX 10.9 or on Linux on a non-virtual machine.

      Attachments

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              ulherman Ulf Hermann
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes