Closed uhertlein closed 5 years ago
Speed wise, comparing distance squares is faster, but the complexity of the code goes up.
For the type of computer power we need to run X Plane to begin with and at this early point of the plugging life, optimising at the cost of readability IMHO is not yet worth it.
Removing the 900 limit is good though..
Alex.
This commit implements a small performance improvement (~18%) by comparing square distances, thus avoiding the sqrt calculation.
It also removes the artificial limit of 900 generated thermals. It should be limited by the user interface instead.