Hi Robert,
thanks very much for your answer.
I have updated OpenThreads lib (3.2.0->3.3.0) but it does not help much.
In fact I think that OSG works well but not like I espect it to work...
Let me explain:
I run my application twice (once in each X server) in parallel.
So there is just one camera per application, then first draw thread works with
cpu 1 and second draw thread (that is in fact also first draw thread for the
second application) works also with cpu 1 !
I think that's a normal behaviour for OSG, (example with drawThreadPerContext
model)
because first cpu number is initialized to 1 in this loop:
ViewerBase.cpp line 381...
Code:
unsigned int processNum = 1;
for(citr = contexts.begin();
citr != contexts.end();
++citr, ++processNum)
{
...gc->getGraphicsThread()->setProcessorAffinity(processNum %
numProcessors);
...
}
Perhaps I could get a pointer on draw thread with "viewer::getAllThreads" and
force draw thread cpu affinity...
Cheers,
Thierry
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59036#59036
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org