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

QGraphicsView performance recession

    XMLWordPrintable

Details

    Description

      Reproducer attached. A QElaspedTimer is used to measure the time spent on QGraphicsView::paintEvent (main_window.cc line 57). And result is printed out. The paintEvent() is going to be called every 1000ms so the result is quite stable and statistically-valid.

      The original reporter claims the following numbers, comparing Qt 5.1 to 5.15. The reported numbers are:

      QT5.1.1 : 33 ms
      QT5.15.10 : 81 ms
      

      I cannot confirm it is true or not. I don't have the same environment, nor Qt 5.1. And Qt 5.1 is not supported whatsoever. But I've tested 5.15.16 vs 6.5.5. And this is what I can conform;

      QT5.15.16 : 12 ms
      QT6.5.5 : 18 ms
      

      Note that I am not saying Qt5.15.16 gets a huge performance boost. I am very likely testing on a much better HW than original reporter did. But the number of 5.15.16 and 6.5.5 may still mean something.

      Attachments

        1. QGraphicsView_performance_issue.zip
          8 kB
          Luqiao Chen
        2. qtdiag.txt
          15 kB
          Luqiao Chen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes