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

[Performance] QGraphicsEffect implementations cause unnecessary copies from video memory to system memory with OpenGL paint engine

XMLWordPrintable

      This is how the problem is created:
      see QGraphicsOpacityEffect::draw
      QGraphicsOpacityEffect retrieves the source pixmap
      it then starts a painter on that pixmap: QPainter pixmapPainter(&pixmap)
      this detaches thte pixmap, which in the OpenGL implementation falls back to a toImage->copy->fromImage (QGLPixmapData::draw)

      This can be fixed by either:
      a. in QGLPixmapData, optimize ::copy to not fall back to QImage
      b. in QGraphicsEffect, draw the source image and the effect's transformation to a 3rd pixmap, rather than begin a QPainter on a copy of the source pixmap

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

            Unassigned Unassigned
            noam Noam Rosenthal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes