Reply To: Any tips for object pooling?

NodeCanvas Forums General Discussion Any tips for object pooling? Reply To: Any tips for object pooling?

#16302
Gavalakis
Keymaster

Hello again and sorry for the late reply.

Async Load would still help like you said to help in the initial step.

With Async Load, the graph might take a few frames to be initialized since this happens on a separate thread. So it is best not to use the GraphOwner object immediately after you instantiate it. There is also a boolean -> ‘GraphOwner.initialized that you can use to check if the graph is initialized (thus AsyncLoad finished). There is no even for that currently, but I can add one if that helps.

Let me know. Thanks!

Join us on Discord: https://discord.gg/97q2Rjh