Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.12.3, 5.15.3
-
Mac1:
macOS Catalina 10.15.7
MacBook Pro (16-inch, 2019)
2.6Ghz 6-Core Intel Core i7
16GB 2667Mhz DDR4
AMD Radeon Pro 5300M 4GB
Intel UHD Graphics 630 1536MB
Mac2:
macOS Mojave 10.14.5
MacBook Pro (15-inch, Mid 2012)
2.3Ghz Intel Core i7
8GB 1600 Mhz DDR3
NVIDIA GeForce GT 650M, 512MB
Intel HD Graphics 4000 1536 MBMac1: macOS Catalina 10.15.7 MacBook Pro (16-inch, 2019) 2.6Ghz 6-Core Intel Core i7 16GB 2667Mhz DDR4 AMD Radeon Pro 5300M 4GB Intel UHD Graphics 630 1536MB Mac2: macOS Mojave 10.14.5 MacBook Pro (15-inch, Mid 2012) 2.3Ghz Intel Core i7 8GB 1600 Mhz DDR3 NVIDIA GeForce GT 650M, 512MB Intel HD Graphics 4000 1536 MB
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.