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

CBuilderManager::MakeTask chain lags #14

Closed
rlcevg opened this issue Aug 19, 2016 · 2 comments
Closed

CBuilderManager::MakeTask chain lags #14

rlcevg opened this issue Aug 19, 2016 · 2 comments

Comments

@rlcevg
Copy link
Owner

rlcevg commented Aug 19, 2016

On large maps CBuilderManager::MakeTask seems to be the cause of lag spikes.
c792282 limits MakeTask calls, but doesn't look like absolute fix.

@rlcevg
Copy link
Owner Author

rlcevg commented Jan 28, 2018

Current issue is calling circuit's pathfinder several times in single frame.

  1. Reducing granularity of path-map improves performance greatly (4x). Previously only maps greater than 20x20 used path-map with low resolution. Changing barrier to 16x16.
  2. Threading would also help a lot, but that's another story for another major AI version.
  3. Another thing to consider - is additional heuristic for single start and multiple end points that should reduce number of pathfinder calls.

rlcevg pushed a commit that referenced this issue Dec 17, 2019
@rlcevg
Copy link
Owner Author

rlcevg commented Sep 27, 2020

Reduced lag by threaded pathfinder

@rlcevg rlcevg closed this as completed Sep 27, 2020
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

1 participant