USNavalResearchLaboratory / simdissdk

SIMDIS SDK
Other
114 stars 40 forks source link

RadialLOS: performance improvement #46

Closed gwaldron closed 5 years ago

gwaldron commented 5 years ago

This changes RadialLOS (data computer) to use the osgEarth ElevationPool instead of terrain intersections. This is faster, especially when recomputing the RLOS when eye position changes. At higher zoom levels the improvement reached up to 10x.

I did not remove the code that listens for terrain tile changes and fires off a recompute -- but I did comment out the code in RadialLOS that performs that recompute because it's no longer necessary. If we decide to keep this approach and discard the old one, I will remove all that code. I also need to put in a calculate for HAMSL versus HAE.