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

QSurfaceFormat::setSwapInterval doesn't work on Windows if value is set to 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.8
    • GUI: OpenGL
    • None
    • Windows

      We noticed an odd behavior on Windows, when was not set (default = 1). The frame rated was much lower than expected. It is always divided by an excact integer value, e.g. if we render with 60Hz:

      60/6.67= 9
      60/12.00=5

      If we set QSurfaceFormat::setSwapInterval to 0, the frame rate is 60fps as on MacOS and Linux with value 1 set.

      I assume, that some random integer is set on Windows, when VSync is enabled (SwapInterval != 0).

       

      This was seen using the QOpenGLWindow class in our project.

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

            qt.team.graphics.and.multimedia Qt Graphics Team
            joergatqt Jörg Wartenberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes