Hello,
I'm using osgWidgets and I have a hierarchy that starts with a
osgWidget::Frame, and it has other widgets inside. This is the hierarchy:
Frame
| Box
| | Frame
| | | Box
| | | | Canvas
| | | | | Frame
| | | | | | Box
| | | | | Frame
| | | | | | Box
| | | | | Frame
| | | | | | Box
...
There are about 8 to 10 Frame/Box sets, inside that last Canvas.
This Frame is a toolbar in my application. I'm animating its height to
perform a smooth collapse when the user clicks the close button.
The problem is: during this collapse the performance gets severely reduced.
The status info shows that the Event traversal is taking a long time. On
Windows the problem is worse: the performance gets reduced to ~1 fps. On
Linux, even though the performance penalty isn't that big, it's still
noticeable. My resize function invokes Frame::resizeFrame, Frame::setOrigin
and Frame::update at the top level Frame.
Any tips on what could be going on? Why would a widget resize cause so much
activity in the Event traversal? I only resize widgets
on osgGA::GUIEventAdapter::FRAME events (once per frame).
Thanks
Eduardo
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org