DirtyHippy
New member
Hi -
My npcs all share the same (large) external behaviour tree. My npcs are all pooled, so once the behaviour tree instance is setup, I don't really have any reason to return the behaviour tree itself to an internal pool (but I think behaviour designer does this automatically for you).
I've been doing some testing on spawning npcs (8) in a deep profile and reinitializing the trees is taking about half the time for the entire spawn, and also doing a ton of allocations. Is there any way to just reset the current in-memory tree rather than returning it to the pool? I'd like to more tightly control when the behaviour tree is returned to its internal pool.
My npcs all share the same (large) external behaviour tree. My npcs are all pooled, so once the behaviour tree instance is setup, I don't really have any reason to return the behaviour tree itself to an internal pool (but I think behaviour designer does this automatically for you).
I've been doing some testing on spawning npcs (8) in a deep profile and reinitializing the trees is taking about half the time for the entire spawn, and also doing a ton of allocations. Is there any way to just reset the current in-memory tree rather than returning it to the pool? I'd like to more tightly control when the behaviour tree is returned to its internal pool.