This is so interesting as an RTS enjoyer.
A widely accepted opinion is that you should be able to steamroll beginners all day? In Starcraft we call that smurfing and the community hates it with a passion.
The first version of DeepStats was full OOP nonsense. The second version was more sensible OOP (aka less of it) but I felt it was still hacky and there was more room for performance. The third version went full fat struct arrays, it was a fraction of the code and 3 times faster.
The only way any code ever gets better, is when some person, somewhere, writes it for the second (or ideally third) time.
...so then why is everyone so anti-rewrite?
@ShawnTheMiller Hey I did one of these for my game too, I found it easier to just do a little binary search to find the closest camera zoom that still framed everything rather than trying to solve it. Yours looks great!