Skip to content

Go-to caching#940

Open
stavrosfa wants to merge 2 commits into
C7-Game:Developmentfrom
stavrosfa:enhancement/go-to-caching
Open

Go-to caching#940
stavrosfa wants to merge 2 commits into
C7-Game:Developmentfrom
stavrosfa:enhancement/go-to-caching

Conversation

@stavrosfa

Copy link
Copy Markdown
Contributor

There was a bug at some point I was trying to figure out, and I realized that we keep calculating the same path over and over again, which made my debugging efforts difficult.

This PR basically says that, if the path is the same as the current one, don't recalculate it.

Comment thread C7Engine/AI/Pathing/AStarAlgorithm.cs

@ajhalme ajhalme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems very reasonable

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

Successfully merging this pull request may close these issues.

2 participants