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

QGraphicsView Performance displaying QImage is faster with QRectGraphicsItem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.9.1
    • None
    • Windows 10
    • Windows

      Hello,

      i wrote a software that loads images frame by frame, and displays them in a graphis view (QOpenGLWidget) triggered by a QTimer with 1000Hz (so im trying to process as fast as possible, if the previous processing did not happen yet then it gets rejected).

      In the processing Im loading FULLHD grayscale images from my SSD.

      The speed that im measuring is around 80 fps. But when i add a QGraphicsRectitem to the scene, then i get 120 fps. Does this make sense?

      So in every loop what i do is that i store the QImage in a member variable. I have another QTimer triggered display loop that actually updates the QImage in the scene with 60Hz. Both, loading the image and displaying it are in the same thread.

      Does anybody know why i get a faster performance with an extra object in the scene?

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

            lagocs Laszlo Agocs
            tompollok Thomas Pollok
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes