|
|
@ -43,9 +43,9 @@ class ScoreView(QtWidgets.QGraphicsView): |
|
|
|
|
|
|
|
#OpenGL has a huge positive impact on performance |
|
|
|
if True: #for testing |
|
|
|
viewport = QtOpenGL.QGLWidget(QtOpenGL.QGLFormat(QtOpenGL.QGL.SampleBuffers)) |
|
|
|
viewport.format().setSwapInterval(0) #disable VSync. |
|
|
|
viewport.setAutoFillBackground(False) |
|
|
|
#viewport = QtOpenGL.QGLWidget(QtOpenGL.QGLFormat(QtOpenGL.QGL.SampleBuffers)) |
|
|
|
#viewport.format().setSwapInterval(0) #disable VSync. |
|
|
|
#viewport.setAutoFillBackground(False) |
|
|
|
|
|
|
|
viewport = QtWidgets.QOpenGLWidget() |
|
|
|
viewportFormat = QtGui.QSurfaceFormat() |
|
|
|