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

QGraphicsView Performance displaying QImage is faster with QRectGraphicsItem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.9.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      Windows

      Description

      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?

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes