Hi all,

this is just a heads-up for people that might encounter a similar problem.

I'm using boost::thread for creating CPU processing threads after I've started an osg::Viewer. I've been pulling my hair out over the fact that all my threads end up on the same processor.

It turns out that the default single threaded viewer sets the affinity of its thread (the main process iow) to CPU0. All my user threads created after this end up on CPU0 too, because they inherit the affinity of the main process.

I've had to manually set the affinity of the main process after creating the viewer (I couldn't find an OSG call though, had to use a pthreads call on Linux) or set the affinity of the user threads once created.

regards
jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to