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

Running animation causes high CPU usage even if nothing is drawn

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.2
    • Quick: SceneGraph
    • None
    • Linux/Yocto

    Description

      I am not sure if this is a bug or works as intended, but found it odd that on a low-end embedded ARM hardware running on eglfs platform the CPU usage hikes up to 40% when running NumberAnimation at 60fps, even when nothing is animated or needs to be redrawn on the screen. From QML profiler you can see scene graph starts spewing out frames. The CPU usage drops to 1-2% if vsync is disabled by modifying QSurfaceFormat swap interval.

      This also means that using FrameAnimation to play idle screen animations on lower refresh rate to limit CPU usage is not really possible (though yeah you can use Timer instead).

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes