Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lazy A* Implementation

I am working on a toy RTS game, for path finding I am relying on A*, problem is alot of units are moving around causing calculated paths to become invalid which is causing wasted CPU cycles, I have to recalculate paths for those agents.

So I thought why not calculate the path lazily instead of calculating the whole path, I keep calculating it as I go along. A google search did not turned up much are there any implementations of lazy A* or any other graph search algorithm?

like image 950
Hamza Yerlikaya Avatar asked Mar 21 '26 07:03

Hamza Yerlikaya


1 Answers

You could use the D* algorithm. It actually works better for this purpose.

like image 151
Felix K. Avatar answered Mar 22 '26 22:03

Felix K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!