I'm pretty sure this is the JIT compiler, we should dummy execute the pathfinder once in the game loading to eliminate this stutter.