[osg-users] porting from osg-3.4.0 to osg-3.6.3
Robert Osfield
robert.osfield at gmail.com
Tue Oct 9 09:23:16 PDT 2018
I wrote:
> That's an easy one then, just comment that line out.
>
> The motivation behind the above line is a bit mus-guided as the OSG keeps track whether a scene graph has an even callbacks and for the subgraphs that don't contain any it doesn't do any traversal, so if you don't use event callbacks the event traversal is close to a non op.
>
> The time you do use an event callback you'll only pay the cost for the traversal down to the node that has the callback.
>
> If you really do want to switch off the event visitor then setting the EventVisitor TraversalMask to 0x0 will switch off traversal.
The above features apply along way back, possibly even the OSG-1.x era
so it's safe to have the event visitor attached, so even if you want
to compile against 3.4 and 3.6.x the remove of the
setEventVisitor(NULL); is perfectly safe.
Robert.
More information about the osg-users
mailing list