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

qmlviewer continues to use CPU cycles after startup animation has finished

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.4
    • 4.7.2
    • None
    • Ubuntu Linux 64-bit
      Harmattan
    • c6e6a35

    Description

      Steps to reproduce:

      • Launch qmlviewer, wait for the animation to finish
      • Minimize/switch it to background
      • Use 'top' to observe CPU consumption

      Expected: qmlviewer process not using much CPU

      Actual: qmlviewer stays at 4 - 6% CPU usage.

      This seems to be caused by a rotating star image in startup.qml:

      	loops: NumberAnimation.Infinite
      	running: true
      

      When the animation is finished, the (now invisible) star continues to rotate. This is bad for power consumption in mobile devices. Easy to fix, either use a finite number of loops for animating the star, or use 'running: Qt.application.active' to stop the animation when the app is in background.

      Attachments

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

        Activity

          People

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            treinio Topi Reiniƶ
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes