Whilst I haven't used osgWidget, I know we had a similar performance issue with picking when we didn't use an appropriate node mask for picking so that only the pickable objects in the scene are considered.
I wonder if osgWidget has implemented one in it's pick handler. Regards, Kim. On 16 April 2012 16:19, Vincent Bourdier <vincent.bourd...@gmail.com> wrote: > Hi all, > > I'm currently trying to find a performance improvement in osgWidget due to > some lag we have in our application : We use osgWidget to manage some > things at runtime, but we realized that performances were dropping in big > scenes. > Using profiler & co, I found that the osgWidget::WindowManager::**pickAtXY > function is very expensive in time... > > Here is my question : this method is called on every event, specially on > mouse move and click, event if the mouse is not over Widgets... Is there > any reason to make this ? Can this be improved, for example doing it only > if the mouse is over the widgets, using a simple XY square test... > > Thanks for your answers. > > Regards, > Vincent. > > -- > > > ______________________________**_________________ > osg-users mailing list > osg-users@lists.**openscenegraph.org <osg-users@lists.openscenegraph.org> > http://lists.openscenegraph.**org/listinfo.cgi/osg-users-** > openscenegraph.org<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org> >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org