s_portraitDisplayTable
global · ui
- Address
0xc0ce88· 40 bytes, up to0xc0ceaf- Type
uint32_t[10]- Meaning
- Holds the hash table of baked portraits by display id: buckets at +0x1c, mask at +0x24
- Confidence
- verified, proof one
- Finding
- ui/portraits#the-caches
Finding: The caches in ui: unit portraits
The bake keeps two hash tables of finished portraits. A player is keyed by GUID (table 0xc0ce7c, mask 0xc0ce84); any other unit by its display id, UNIT_FIELD_DISPLAYID at +0x1f4 of the fields (table 0xc0cea4, mask 0xc0ceac). A GUID entry holds the GUID at +0x18 and +0x1c, a dirty byte at +0x20 and the texture at +0x24;
a display-id entry holds the texture at +0x18 and no dirty byte. A hit on a clean entry binds the cached texture with 0x770300 and draws nothing.
The derivation is in the doc.