[osg-users] OSG Intersector thread safe?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Fri Mar 20 00:08:13 PDT 2020


Hi Chris,

On Fri, 20 Mar 2020 at 04:55, OpenSceneGraph Users <
osg-users at lists.openscenegraph.org> wrote:

> Is there any reference material that indicates positively whether osg
> Intersection tests are thread safe to be run in parallel with each other,
> and/or safe to run in parallel with cull/draw as long as the graph they're
> visiting isn't being changed?
>
> I think I know the answers, but I wanted confirmation from someone else
> with experience.
>

It should be possible to run intersection tests in parallel, you just need
to have an osg::IntersectionVisitor per thread.  The scene graph itself
should be left unchanged by the traversal.

Cheers,
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200320/5bfc4f51/attachment.html>


More information about the osg-users mailing list