Issue #169: Init X11 threads for threaded buffer swap
Ref: http://blog.qt.io/blog/2011/06/03/threaded-opengl-in-4-8/
This commit is contained in:
parent
b5889d528c
commit
39a717b3ca
@ -157,6 +157,8 @@ editorApp = None
|
||||
|
||||
@profiler.function("startup")
|
||||
def startup():
|
||||
# Must call this before QApplication is created
|
||||
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads, True)
|
||||
global editorApp
|
||||
setup_logging()
|
||||
sys.excepthook = excepthook
|
||||
|
Reference in New Issue
Block a user