Pathfinding Loop Optimization

Hey guys!

I am wondering if there was an optimized way of running a Pathfinding loop for enemy mobs in my game. Currently, the pathfinding is being handled in a loop being updated every 0.5 seconds and it works fine, but I was wondering if there was a more optimized way of handing this (Maybe without a loop?).

1 Like