r/programming • u/hazadess • Apr 23 '13
PathFinding algorithm, visually explained
http://qiao.github.io/PathFinding.js/visual/
2.2k
Upvotes
r/programming • u/hazadess • Apr 23 '13
View all comments
Show parent comment
18
u/EmoryM Apr 24 '13
JPS suffers if you're trying to path through noise - the overhead of searching for jump points (which isn't illustrated in this demo) and the small utility of finding them can result in lower runtime performance vs. A*. That was my experience after implementing both, at least.
A* immediately lends itself to pathing through grids where cells have different costs, too - such as roads, grass and mud.