Hi Filip, On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm having the same problem using osgViewer::StatsHandler with osgViewer::CompositeViewer. I'm doing some osg performance tests with 3 x osgViewer::View on a CompositeViewer. Since the statsHandler only works with osgViewer::Viewer I also tried to use 3 x osgViewer::Viewer added to my CompositeViewer. I then get updates on Cull: Draw: and GPU: but nothing for Frame Rate, Event and Update. Is there currently any way of getting some stats with more than one window?
StatsHandler is tied to osgViewer::Viewer right now, it should possible to generalise it but it'll take some integration of stats into the CompositeViewer, and StatsHandler generalising to handle the more complex viewer. Adding osgViewer::Viewer to a CompositeViewer is not the way to go about things, as CompositeViewer will just ignore all the extra methods that Viewer provides, as CompositeViewer is deisgned around managing a list of Views, rather than a list of Viewers. If you can wait till I have time available then I'll be able to do the work of generalising the StatsHandler and modifying CompositeViewer to work. However, I've very busy and will be for a while, plus I'm suffering from RSI so I won't get to it soon. You're welcome to study how StatsHandler works and how Viewer is wired with it, and from this work out how to wire up CompsiteViewer. The other alternative to roll a new StatsHandler just for CompositeViewer. Robert. Robert. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
