[osg-users] Threadsafe IntersectionVisitor and LineSegmentIntersector?

Matthias Sattler osgforum at tevs.eu
Mon Aug 3 09:06:37 PDT 2015

Hi Sebastian,

the sample code is called asynchronously from several compute threads. 
When I make sure that only one thread at a time calls accept() everything is rock solid (millions of calls).  But it's running slowly and doesn't scale well with the number of cores.

Without the lock the calls to accept() are asynchronous too and I get wrong results every few hundred calls.

The compute threads themselves run independetly from the main thread with the viewer. In fact this even happens in batch mode too without any visual representation at all.

Thank you!


Read this topic online here:

More information about the osg-users mailing list