Skip to content

Conversation

@Ceeeeed
Copy link

@Ceeeeed Ceeeeed commented Jan 16, 2021

Hi. I've made two minor changes:

  1. threadStart.Invoke(); to new Thread(threadStart).Start();. The first one does not create a new thread.

  2. List<Node> neighbours = new List<Node>(); to neighbours.Clear(); (now this list is a field). GetNeighbours() method is called quite often during path searching, so creating new list every time slows down the algorithm a lot. For me it's 20-25% faster after this change.

Updated A* tutorial using DOTS would be great.
Cheers!

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.

1 participant