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

[REG: 5.11 -> 5.12]: QGraphicsView gets very slow with many update() calls

    XMLWordPrintable

Details

    • All
    • 31012df705c37503be00f0ddc2c323e73fd28067 (qt/qtbase/5.13)

    Description

      Looks like the fix for QTBUG-54275 ( " QGraphicsScene::update(): Keep the list of updatedRects() unique" 1d09b0d1b28eaea17069f7359956640f31ea79c6 https://codereview.qt-project.org/c/qt/qtbase/+/241098 ) causes update() call to get very slow due to it scanning the whole list. qFuzzyCompare and especially qAbs is showing up quite high in a profiler.

      With attached minimal example, press the button and it will freeze for a while.

      On my system, Qt 5.11.3 completes in 9ms, but Qt 5.12.4 takes over 6 seconds.

      Attachments

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

        Activity

          People

            anrocha André De La Rocha (Inactive)
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes