Added update traversal to run prior to doing kdtree build to make sure that

costs in build osgTerrain databases isn't incurred during the build traversal.
This commit is contained in:
Robert Osfield 2008-06-06 10:51:23 +00:00
parent 238d482230
commit aa73e1d1d4

View File

@ -32,6 +32,7 @@
#include <osgUtil/IntersectionVisitor>
#include <osgUtil/LineSegmentIntersector>
#include <osgUtil/UpdateVisitor>
#include <osgSim/LineOfSight>
#include <osgSim/HeightAboveTerrain>
@ -485,6 +486,10 @@ int main(int argc, char **argv)
}
osgUtil::UpdateVisitor updateVisitor;
scene->accept(updateVisitor);
osg::Timer_t start = osg::Timer::instance()->tick();
osg::KDTreeBuilder builder;