OSG Intersector thread safe?

28 views
Skip to first unread message

Chris Hanson

unread,
Mar 19, 2020, 2:18:52 PM3/19/20
to OpenSceneGraph Users
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.

--
Chris 'Xenon' Hanson, omo sanza lettere. Xe...@AlphaPixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging  UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

OpenSceneGraph Users

unread,
Mar 20, 2020, 3:08:37 AM3/20/20
to OpenSceneGraph Users
Hi Chris,

On Fri, 20 Mar 2020 at 04:55, OpenSceneGraph Users <osg-...@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.
 
Reply all
Reply to author
Forward
0 new messages