GC Allocation Spike

Forums 💬 NodeCanvas 🗨️ General Discussion GC Allocation Spike

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13230
    bonyyousuf
    Participant

      Hi,

      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?

       

      Thanks

      #13232
      bonyyousuf
      Participant

        Never mind this post. Just found out about the “Pre Initialize SubGraph” checkmark on the Graph Owner. 😛

        #13231
        Gavalakis
        Keymaster

          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 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.