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

Add a non-preserved mode to QOpenGLWidget and QQuickWidget

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.5.0
    • None
    • GUI: OpenGL
    • None

    Description

      The framebuffer object contents is preserved between paint events. The behavior is matching QOpenGLWindow's partial update modes. This is fine.

      However, most apps do not care about incremental drawing, they redraw everything on each paint. When this is true, the framebuffer's depth and stencil contents can be discarded (glDiscardFramebuffer) right after the paint event, while the color attachment can be discarded after composition.

      To do this, we need to be sure however that the application is not relying on the previous contents in the next paint. Therefore this needs a flag, similar to QOpenGLWindow's UpdateBehavior.

      Attachments

        Issue Links

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

          Activity

            People

              jolind Jorgen Lind
              lagocs Laszlo Agocs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes