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

Qml animations are too fast in Release builds (ok in Debug)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.10.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      1. Windows 10 x64, Xeon E5-1620, NVidia Quattro K600
      2. Windows 8 Embedded, i5-2510E, Intel HD Graphics 3000
    • Platform/s:
      Windows

      Description

      Qt 5.10.1, built for Windows with VS2013 and configured as

      configure -debug-and-release -nomake tests -nomake examples -opensource -force-debug-info -opengl es2 -angle -qpa direct2d -icu

       

      I see different QML animation time between Debug and Release builds:

      • Debug builds are OK and timed near-perfectly (1000ms Timer lasts around 980ms)
      • Release builds are significantly faster - 1000ms Timer lasts 680ms in average (varies in range between 660 - 800) on the first system and around 470ms on another.

       

      This has been tested on 2 systems - one is NVidia Quattro K600 and another is Intel HD Graphics 3000.

       

      Measurement code using QML Timer (green is a Text item):

          Timer {
              interval: 1000
              running: true
              repeat: true

              property double startTime: 0

              onTriggered:
              {
                  if (green.visible)
                  {
                      startTime = new Date().getTime()
                      green.visible = false
                  }
                  else
                  {
                      time.text = new Date().getTime() - startTime + " ms"
                      green.visible = true
                  }
              }
              }

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              janichol Andy Nichols
              Reporter:
              valentyn valentyn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes