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:
parent
238d482230
commit
aa73e1d1d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user