benilla-re systems structs docs

FreePortraitDisplayNode

function · ui · orchestration

Address
0x526280 · 101 bytes, up to 0x5262e4
Meaning
Closes a display-id portrait node's texture, frees its +0x1c array, unlinks the node and frees it
Confidence
verified, proof one
Finding
ui/portraits#display-id-cache-lifetime

Finding: Display-id cache lifetime in ui: unit portraits

The display-id table (0xc0ce88, buckets 0xc0cea4, mask 0xc0ceac) gains entries from the bake 0x524f60 alone: for a held unit without the player bit 0x10 in its type mask, once the lookup missed and the model is drawn. The bake runs for SetPortraitTexture on a held unit and for SetLootPortrait. The key is UNIT_FIELD_DISPLAYID, read again at the insert, so any non-player unit of that display id fills it, a pet or a creature, and 0x525cb0 then finds it for a pet the client does not hold. An entry is never redrawn or removed until ClearPortraitCaches runs from CGGameUI::ShutdownGame when the client leaves the world (ClientDestroyGame); the exit destructor empties it at process exit.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.