Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

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

Open
TehPlayer14 opened this issue Jul 10, 2017 · 2 comments
Open

Comments

@TehPlayer14
Copy link

TehPlayer14 commented Jul 10, 2017

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

@TehPlayer14 TehPlayer14 changed the title [AI][Major] AI attacks make the game lag (by using too much CPU in pathfinding ?). [AI][Major] AI attacks make the game lag (by using too much CPU in pathfinding) Jul 10, 2017
@Kromster80
Copy link
Owner

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

@Kromster80 Kromster80 changed the title [AI][Major] AI attacks make the game lag (by using too much CPU in pathfinding) AI attacks make the game lag (by using too much CPU in pathfinding) Jul 11, 2017
@TehPlayer14
Copy link
Author

Yep

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants