My AI graph has some sub behaviour tree graphs and anytime these graphs are first transitioned to I get a huge GC and also CPU spike. It seems like those sub graphs are being initialized only when they are first accessed. Is that the case?
In any case, can you look into these two pictures and tell me what is happening?
Hey,
Indeed, the “Pre Initialize SubGraphs” is what you are looking for here 🙂
You can also use “First Activation: Async” to load the graph async (separate thread). This counts only for the root graph at the moment though.
Cheers 🙂