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

Constant Vsync on, QGLFormat::setSwapInterval() value ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.0.0
    • GUI: OpenGL
    • None
    • Qt 5.0.0, Windows XP, MS Visual Studio 2010, NVIDIA GeForce 250

    Description

      Self compiled Qt libraries with -opengl desktop, release build. Rendering is done in a separate from GUI thread. Before any GLWidget is created following code is executed:

      QGLFormat fmt;
      
      fmt.setAlpha( true ); 
      fmt.setDepth( true ); 
      fmt.setDepthBufferSize( 32 );
      fmt.setSwapInterval( 0 ); 
      
      QGLFormat::setDefaultFormat( fmt );
      

      Even if setSwapInterval is 0, rendering will still be limited to 60 fps. Setting 1 or 2 instead of 0 gives the same result - 60 fps.
      Qt 4.8 had no such problem. Full rendering speed in Qt 4.8 is around 200 fps.
      The following problem rises with NV driver Vsync option set to "Use 3d application setting". If in NV driver Vsync is set to "Always off" then rendering can achieve full speed.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            irdis Alexander
            Votes:
            11 Vote for this issue
            Watchers:
            20 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes