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

Qt Quick needs a simple way to disable vsync for dev/test purposes (env.var.)

    XMLWordPrintable

Details

    • 8d93470858 (qt/qtdeclarative/dev) 8d93470858 (qt/tqtc-qtdeclarative/dev)

    Description

      Currently setting the QSurfaceFormat::swapInterval to 0 is mapped to QRhiSwapChain::NoVSync by both render loops. This is nice but not quite useful for testing and development because it involves modifying the application. Just as we have QSG_NO_DEPTH_BUFFER that affects the default depthBufferSize on the QQuickWindow's QSurfaceFormat (and is taken into account in other ways for non-OpenGL), we should have a QSG_NO_VSYNC that sets the swapInterval to 0 instead of the default 1.

      for cross-platform operation both are needed: with OpenGL the swapInterval value from the QSurfaceFormat is what matters and is handled by components in the Qt stack other than QRhi, whereas for non-GL APIs (D3D/Vulkan/Metal) the handling is implemented based on the NoVSync flag directly in the QRhi backends themselves.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            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