Slowdown when the only ships left belong to a single faction
Status: Pre-Alpha
Brought to you by:
megagun
When the only ships that are still in the game all belong to a single faction, the game will slow down to a crawl.
This is because on every game tick, every ship will search for enemy targets nearby, and fail.
Should the searching succeed in finding an enemy ship, on the next game tick the searching function won't be called anymore.
However, this is not the case; the searching does not result in a valid enemy ship.
Probably, fixing this requires either a 'timeout' in searching (only search every X game ticks), or this will require a fairly large rewrite of the searching algorithm.