pioneerspacesim/pioneer — pull request #927 by Ziusudra (2012-01-27 23:29:34+00:00)
Title: Reduce number of calls to GetNearbySystems in Missions

Since GetNearbySystems is so expensive we should only call it when needed. These modules were getting the same list over and over, every time they needed to create a BB ad.

This changes them to get the list once when first needed and keep it until the player leaves the current system.

This also avoids an error in the very unlikely case that there is only one system in the table.

This gives me a much smoother frame rate when at maximum time acceleration in busy systems like Sol.