madebykrol / Nostalgi2D

Nostalgi2D
1 stars 0 forks source link

Concurrency issue with pathfinding. #2

Open madebykrol opened 7 years ago

madebykrol commented 7 years ago

IPathNode and findPathAsync Implementations are not thread safe.. Cannot run two or more simultanious path finding threads.

madebykrol commented 7 years ago

Issue lies with how the cost of each node is calculated. Every Navigation Mesh Node is being written to by each running thread resulting in a race condition for each path finding thread.