Hi all,
I'm curious about the lifetime of an AtNode *.
Let's say in node_initialize I grab another node's AtNode *. Is it valid/okay to store that inside the struct I have for my node's local data to use it within node_update? Or should I be performing an AiNodeLookupByName within node_update to grab a fresh pointer? (incase anything has been ditched, reallocated, moved or otherwise messed with).
If either is fine, I assume keeping is preferable for (extremely minor, I'd assume) perf benefit. Is that reasonable?
Cheers,
Alan.
Gelöst! Gehe zur Lösung
Gelöst von Stephen.Blair. Gehe zur Lösung
Hi Alan
The devs say "That sounds about right, I'd update the node pointer in each node_update call (which will help with IPR changes anyway)."
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.