Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

AtNode * lifetime

2 ANTWORTEN 2
GELÖST
Antworten
Nachricht 1 von 3
Anonymous
300 Aufrufe, 2 Antworten

AtNode * lifetime

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.

Tags (2)
Beschriftungen (2)
2 ANTWORTEN 2
Nachricht 2 von 3
Stephen.Blair
als Antwort auf: Anonymous

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)."





// Stephen Blair
// Arnold Renderer Support
Nachricht 3 von 3
Anonymous
als Antwort auf: Stephen.Blair

Thanks very much, Stephen.

Cheers,

Alan.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report