osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

Building kdtrees at runtime is too slow

Open jasonbeverage opened this issue 3 months ago • 0 comments

There are a few places that kdtrees get built in osgEarth that can cause loading stalls.

  1. In DrawInstanced::setMatrices
  2. SimplePager::createPagedNode
  3. 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.

jasonbeverage avatar Apr 02 '24 14:04 jasonbeverage