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

Update to Text elements causes slow down in QtQuick UI



    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6
    • 5.2.1, 5.3.2, 5.4.0 RC
    • Embedded Linux, but present on all environments.


      Updates to the content of the Text elements in an application will slow down the operation of other parts of the application. The problem gets worse when there are lots of QML Elements visible.

      The problem is actually difficult to see on a powerful Desktop machine, but quite significant on embedded devices such as iMX53 or iMX6. The attached sample application shows the issue - you should see the ‘Label 4’ counter pause regularly while the application is running, although the result is a lot more obvious on an embedded device.

      Investigation into the problem shows changing the text in a Text element causes the existing GlyphNodes to be removed and new ones added.

      GlyphNodes are subclasses of the GeometryNode, and adding a GeometryNode without a root to the SceneGraph causes it to rebuild itself from the bottom up.

      Setting clip: true on the Text element stops the fullRebuild from happening, but slows down the application more than not having clip: true.


        1. garry2.zip
          12 kB
        2. garry2bench.zip
          9 kB
        3. garry2bench2.zip
          12 kB

        Issue Links

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



              ulherman Ulf Hermann
              reworled Rebecca Worledge
              1 Vote for this issue
              9 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes