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

QOpenGLWidget: Can't set/read V-Sync

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.0 Beta
    • None
    • Windows 7, Linux/X11

    Description

      QOpenGLWidget setFormat() "ignores" swap interval. In QOpenGLWidgetPrivate::initialize() method swap interval is set to TLW, but the TLW is not re-created, so it doesn't make any effect.

      Comment inside initialize() method: "Most platforms will pick up the changed swap interval on the next makeCurrent or swapBuffers." - it doesn't work as expected. The window needs destroy() and create() to "read" the new format. I think that swap interval should have an exception (it shouldn't need to re-create) to make this comment real, because recreating the TLW can cause ficker.

      The second thing is that QOpenGLWidget::format() doesn't return the format proper with swap interval value.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            zaps166 Błażej Szczygieł
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes