s_pendingPortraits
global · ui
- Address
0xc0cdcc· 12 bytes, up to0xc0cdd7- Type
uint32_t[3]- Meaning
- Holds the list of GUIDs awaiting portrait events: link offset, end link and head
- Confidence
- verified, proof one
- Finding
- ui/portraits#marking-and-draining
Finding: Marking and draining in ui: unit portraits
0x524e10(&guid) marks a portrait dirty. A GUID already on the pending list (0xc0cdd0, head 0xc0cdd4) returns at once and keeps its place. Otherwise the mark links a new node at the head of the list, with the GUID at +8 and +0xc, and sets the dirty byte of the GUID cache entry, if one exists.
Each frame 0x524cd0 walks the list from the head, so the newest mark drains first. A node whose unit is held but not ready (the latches below) stays, and every other node leaves the list and signals the unit events UNIT_PORTRAIT_UPDATE (0xb8) and UNIT_MODEL_CHANGED (0xb9) for the GUID. 0x524f60 returns at once for a unit whose GUID is on the pending list.
The derivation is in the doc.