SimpleSmoothModifier GC.Collect lag spike

Hello. I’m currently running A* 4.3.36 in my Unity game and it has massive 260ms lag spikes occuring sometimes in SimpleSmoothModifier.Apply(). It seems that GC.Collect is causing the spike.
What can I do to prevent these? Grid width is 15000.

Hi

That’s the garbage collector. It may happen in pretty much any part of the code. I don’t think it’s related to the SimpleSmoothModifier.