I have a really huge graph that takes a long time to scan at the start up, using GraphUpdateObject allows me to instantly update the graph with no hiccups.
I was wondering if I should be caching and recycling the GraphUpdateObject class or should I just use them locally (as shown in the documents) so it would destroy after the code executes?
If you are just updating the same region of the graph with the same settings I don’t think it should be a problem to reuse it. However note that graph updates are not always carried out immediately so don’t change any settings on it as they might not have been used yet for a few frames. Usually you would just create one and throw it away.