Hi Robert, Thanks for your answer. Although I believe you misunderstood my question in some aspects.
First, I'm working with OSG, not VSG. And AFAIK OSG's threading model is quite limited - because OpenGL doesn't support any kind of multithreaded rendering. Second, I mentioned Qt/QML to simply be more specific. I don't expect you or anyone else to help me with my work or tweak OSG somehow. Third, the question itself isn't that specific IMO to Qt. It's a situation where scene/UI rendering is performed on a separate thread, which is synchronized with main UI thread on each frame. My code ensures that scene graph is mutated in any way only at that specific synchronization point. My only issue is that I need to perform ray picking (or some other minor read accesses) over scene graph on main UI thread while scene may be rendered on render thread at the same time. If rendering mutates some parts of scene graph internally, then I may have issues. If not, then I'm good. Thanks, Igor On Tuesday, May 18, 2021 at 10:39:34 AM UTC+3 [email protected] wrote: > Hi Igor, > > The OSG is built for multi-threading of osgViewer View's in various ways, > it's not general multi-threading support, it's designed specifically for a > scene graph so overheads for that multi-threading to a minimum. > > The multi-threading that osgViewer provides is managed by osgViewer itself > so it can marshal all the tasks and synchronization correctly. Doing the > threading a synchronization externally should be possible with limitations > to work similar to how osgViewer works, however, it won't be straight > forward. My recommendation would be to work with the VSG's existing > threading. > > If you want to attempt to do all the threading yourself via Qt then > personally I'll need to step back and let you get on with it, trying to do > it work suck too much of my time, for something that might not work out, > and would be of little general benefit to the community, and I have no Qt > expertise to guide the process. > > Cheers, > Robert. > -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/0070b16f-1c98-43b7-9267-ad136b1a767en%40googlegroups.com.
