]> git.mxchange.org Git - flightgear.git/commit
NavDisplay: time-bound the spatial query.
authorJames Turner <jmt@Bishop.local>
Sun, 30 Dec 2012 17:01:48 +0000 (17:01 +0000)
committerJames Turner <jmt@Bishop.local>
Sun, 30 Dec 2012 17:01:48 +0000 (17:01 +0000)
commit851029143e20fcfdac96253a63e3d07fd267d95f
tree571695aead697c0a1f608bd9c1235592ae1ad874
parentd0e95037666c16676a09997020a469cfa2c5634a
NavDisplay: time-bound the spatial query.

At large search ranges (320 or 640NM range on the 777), the search time can blow up, especially if distant airports are being loaded. Add a time-bounded spatial query, and use it, so performance stays tolerable.
src/Cockpit/NavDisplay.cxx
src/Navaids/PositionedOctree.cxx
src/Navaids/PositionedOctree.hxx
src/Navaids/positioned.cxx
src/Navaids/positioned.hxx