Menu

#1 Slowdown when the only ships left belong to a single faction

open
nobody
None
5
2010-05-06
2010-05-06
Megagun
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB