Message 1 of 3
Not applicable
10-30-2019
11:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.