Hi Neil,
After trying the examples using a pre-built 2.9.9 and the latest from the SVN built with VS10 the CPU usage is high. On a dual core one is nearly max and the other core is minimal.
Apart from the run on demand functionality that others suggested, you should make sure vsync is enabled (i.e. that you're not rendering more than 60 times per second). On nvidia this is the default, but on ATI it's off by default so you'd want to turn it on either in your app or in the driver's control panel.
When vsync is on the swapbuffers will wait for vsync before swapping. This wait is a yield that will release the processor for other tasks to run, so it will reduce CPU usage.
However, note that I've seen some cases where the yield waiting for vsync was done with a "busy wait" in the video driver, which meant that it appeared as if it was using the CPU all that time, but in reality if your app needed to do some work during that time it would get CPU cycles as normal. So the "busy wait" just makes it look as if the CPU is busy, but that's just an appearance.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

