I’m having a very specific case and my game is basically a simulation that need to run for hours
I’m using a Recast Graph, and some prefabs spawns every minutes and require a local compute of the graph via GraphUpdateScene component
However, the memory usage is getting bigger and bigger, I’ve profiled and seems that Pathfinding.Graphnodes was growing really fast.
I’ve tried to reload the scene every 30 minutes hoping that the some stuff would be garbage collected, it helped a bit but there is still a leak (approx 500mb/hour)
Is there any way to clean the memory or reset entirely the graph?