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

Qt app took longer time to execute QOpenGLFunctions_2_0::initializeOpenGLFunctions if it was built on Mac 10.10.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.6.2
    • GUI: OpenGL
    • None
    • macOS

      Summary:

      Qt app took longer time to execute QOpenGLFunctions_2_0::initializeOpenGLFunctions if it was built on Mac 10.10. No matter which platform it ran.  

      Desc:

      To reproduce this issue, I built the Qt OpenGL example on both Mac 10.10 and Mac 10.11. And print elapsed time of QOpenGLFunctions_2_0::initializeOpenGLFunctions(). 

       

          if (needsInitialize) {
              QElapsedTimer timer;
              timer.start();
              initializeOpenGLFunctions();
              qDebug() << "initializeOpenGLFunctions lasted for " << timer.elapsed();
              initialize();
          }
      

      The outputs were:

       

       

      // built on Mac 10.10
      initializeOpenGLFunctions lasted for 137
      // build on Mac 10.11
      initializeOpenGLFunctions lasted for 2

      The build environments were:

       

       

      Qt 5.6.2
      
      MacOS 10.11.6
      Apple LLVM version 7.3.0 (clang-703.0.31)
      Target: x86_64-apple-darwin15.6.0
      Thread model: posix
      
      Mac 10.10.
      Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
      Target: x86_64-apple-darwin14.5.0
      Thread model: posix
      

       

      To make sure it's a Qt issue, I also built it on Mac 10.10 with Qt 5.9.1 and the issue did not appear. 

       

      // Output, Mac 10.10 with Qt 5.9.1
      initializeOpenGLFunctions lasted for 0
      

       

        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
            cong Cong Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes