Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants