osgearth
osgearth copied to clipboard
Building kdtrees at runtime is too slow
There are a few places that kdtrees get built in osgEarth that can cause loading stalls.
- In DrawInstanced::setMatrices
- SimplePager::createPagedNode
- TileDrawable::setElevationRaster
Investigate alternatives to using the kdtrees being built at runtime. Options could include prebuilding and saving the kdtrees, making a faster kdtree builder or using a completely different intersection accelerator structure.