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

Customizable refresh rate in Qt Quick

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • P3: Somewhat important
    • 6.5.0 Beta1, 6.x
    • 5.13.0 RC 3
    • Quick: SceneGraph
    • None
    • All
    • 15
    • 7fe4c9bb27 (qt/qtdeclarative/dev) 7fe4c9bb27 (qt/tqtc-qtdeclarative/dev)

    Description

      It would be useful in some cases to be able to set the refresh rate of specific parts of a Qt Quick UI, rather than repainting everything at 60 fps. For largely static parts of the UI for instance, it may add unnecessary resource consumption to forward-step the animations, update the graph and execute the draw calls every frame. Instead the contents can be stored in an off-screen buffer and be updated on a lower refresh rate, as it might be acceptable that some low priority animations are not running as smoothly as the high priority UIs.

      With Layer.enabled, we already support delegating contents to an FBO, so a possibility would be to add an additional property to Layer, for instance Layer.refreshRate:

      Item {
         Layer.enabled: true
         Layer.refreshRate: 1000.0 / 30.0 // Layer updates at 30 fps ( == 32 ms)
      }
      

      Note: On some hardware, drawing via an FBO may be inhibiting, but if we could later somehow enable delegating Layers to hardware layers through some hardware specific extension, then this solution would also work on the more restrictive GPUs.

      Attachments

        Issue Links

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

          Activity

            People

              kskau Kristoffer Skau
              esabraha Eskil Abrahamsen Blomfeldt
              Jarko Vihriälä Jarko Vihriälä
              Andy Nichols Andy Nichols
              Votes:
              2 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3 weeks
                  3w
                  Remaining:
                  Remaining Estimate - 3 weeks
                  3w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Gerrit Reviews

                    There are 2 open Gerrit changes