Kromster80/kam_remake

AI attacks make the game lag (by using too much CPU in pathfinding)

TehPlayer14 opened this issue · 2 comments

The simple solution to this is make attack queue that would dispatch all groups attacking and delay them by few frames like TPR did:

The attack setting was a one attack only

Just don't order every group at once or at one frame

Proof Video https://www.youtube.com/watch?v=sfJrjUM0tU0&feature=youtu.be

Lag is likely caused by too many units building their paths to destination at once.