[osg-users] Processor Affinity and forked processes
Pete Black
pete at marchingcubes.com
Mon Nov 23 00:51:33 PST 2015
This bit me too.. i create a number of Qt threads to do things (update terrain, run physics simulation) and OSG was forcing them to all run on CPU 0, leading to really terrible performance, since it sets CPU affinity on the main thread, and all threads spawned from it will inherit the CPU mask.
OSG should not, in my opinion, be doing this by default. if a CPU affinity is to be set, it should be done explicitly by the programmer.
If this (hardcode cpu affinity to CPU 0) was a common practice in other libraries and apps, wouldn't it obviate any advantage OSG might gain from it?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65739#65739
More information about the osg-users
mailing list