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

QOpenGLWindow has a low frame rate on macOS (40 fps)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.3, 5.15.3
    • GUI: OpenGL
    • macOS

    Description

      This issue does not happen on Linux or Windows (tested on CentOS7 and Windows 10), only on macOS (tested on Catalina 10.15.7 and Mojave 10.14.5).

       

      Rendering a simple rotating triangle only reach 40 fps on macOS inside a QOpenGLWindow , while it reaches the display refresh rate on Linux and Windows (60 fps). Note that for comparison on macOS, this is not issue inside a QGLWidget or a QOpenGLWidget.

       

      Note that this is visible during the rotation, you can visually perceive that the animation inside a QOpenGLWindow is not as smooth as with QGLWidget or QOpenGLWidget.

       

      The attached source archive (it includes a README.txt) demonstrates the issue with QOpenGLWindow and also provide comparative test programs with QGLWidget and QOpenGLWidget. It is rotating a red triangle on a green background with a fixed pipeline and immediate mode, nothing fancy.

       

      Attachments

        1. big_app_log.txt
          19 kB
        2. qt_bug_qopenglwindow_40fps.tgz
          6 kB
        3. qtbug91722.zip
          22 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            fbertelschrodinger François Bertel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes