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

QOpenGLWidget: repainting some widgets slows down rendering with V-Sync

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.5.0, 5.5.1, 5.6.0 Alpha
    • Fix Version/s: None
    • Labels:
      None

      Description

      Updating message in status bar or scrolling list widget slows down repainting when QOpenGLWidget is used. Please try the test software (V-Sync must be turned on). Updating QLabel, QSlider and QOpenGLWidget simultaneously doesn't affect the speed, but changing message on status bar or scrolling QListWidget slows down rendering. It looks like repaint is not scheduled in message queue. Updating label in the status bar (permanent widget) is also fast.

      Since https://codereview.qt-project.org/#/c/140945/ on XCB moving the window locks the application which uses QOpenGLWidget. The expose event is sent to the application by every window position change.

      I noticed that using QOpenGLWidget results in higher CPU usage (entire window uses OpenGL), is it correct? I thought that OpenGL should speed up rendering.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                lagocs Laszlo Agocs
                Reporter:
                zaps166 Błażej Szczygieł
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes