Hi Chris,

On 8/10/06, Chris Hanson <[EMAIL PROTECTED]> wrote:
   Something I'm curious about -- do you want to know the number of "real" 
CPUs, or
"virtual" CPUs? As in, do you want a HyperThreaded CPU to count as two CPUs or 
not? Under
Windows, HT CPUs report themselves as two CPUs (logically) but for some 
operations you
can't really count on them performing like two CPUs. I ended up writing some 
goofy code to
detect both the number of "real" and "virtual" CPUs in a system, for this 
reason.

Well HyperThreaded is pretty poor form of multi-processor, so I'd be
inclined to not report it a two processors.

Modern dual core processors scale very well so here it makes sense to
represent them as two processors.

However, right now I think it appropriate to keep any changes very
simple, at least for 1.1.1.  I've just implement GetNumProcessors() to
return 1 under windows.  If there is a simple function that will be
portable across windows versions and compilers then I'd be happy to
see it integrated with prior to 1.1.1.

I don't think this issue is to critical yet for windows as multipipe
windows setup is still needs many other things fixing with it first.

Robert.




   I think I could contribute this if you need it, as it's mostly just code 
examples from
Intel (CPUCount.cpp), posted on the web.

> Thanks in advance,
> Robert.

--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
  "I set the wheels in motion, turn up all the machines, activate the programs,
   and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
   activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to