openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

Question: OSG have only running in SingleThreaded mode in Qt? #1251

Open ChenKe404 opened 1 year ago

ChenKe404 commented 1 year ago

if 'yes', it's mean I can't use MultiThreaded mode? Is 'yes' for both Qt5 and Qt6?

CapTainHbb commented 1 year ago

i think your answer is 'yes'. OSG runs in single-threaded mode with Qt and you can't set the multi-threaded mode in OSG (it causes run-time or complie-time error in multi-threaded mode). in our project we had the issue that OSG only runs in single-threaded mode in Qt and our solution was to separate Qt and OSG application in two processes and make the connection between them with zmq. but it caused a lot of extra work to set connection between them properly.