1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

SceneWidget: change the threading model to DrawThreadPerContext

Performs much better because we can break frame early, running cull in parallel with last frame's draw.
This commit is contained in:
scrawl 2015-11-13 20:59:39 +01:00
parent 054c3eb24e
commit 1402a16702

View file

@ -126,7 +126,7 @@ CompositeViewer::CompositeViewer()
// Qt5 is currently crashing and reporting "Cannot make QOpenGLContext current in a different thread" when the viewer is run multi-threaded, this is regression from Qt4
osgViewer::ViewerBase::ThreadingModel threadingModel = osgViewer::ViewerBase::SingleThreaded;
#else
osgViewer::ViewerBase::ThreadingModel threadingModel = osgViewer::ViewerBase::CullDrawThreadPerContext;
osgViewer::ViewerBase::ThreadingModel threadingModel = osgViewer::ViewerBase::DrawThreadPerContext;
#endif
setThreadingModel(threadingModel);