benilla-re systems structs docs

s_textureCacheLoadCount

global · gx

Address
0xb42764 · 4 bytes, up to 0xb42767
Type
uint32_t
Meaning
Counts texture cache load attempts; cleared by 0x47b1f0
Confidence
verified, proof one
Finding
gx/textures#texture-cache

Finding: Texture cache in gx: textures

0x47ae30(name, flags) returns a cache entry for a texture file name, creating it on a miss and adding 1 to its count at +0xbc. An entry is 0xc8 bytes from an object heap (0x47aca0 makes it on first use with 0x463920(size 0xc8, count 0x400), which stores the size at +0x10 and the count at +0x14), keyed by the hash of the name (0x64af90), name at +0x38 (127 bytes), texture handle at +0x18, a failed-load mark at +0xc4. 0x47b0c0 loads it through 0x47ac10, which tries 0x449610 on the name and again on the alternate name of 0x44b320, marking +0xc4 on failure. 0x47b010 subtracts 1 and frees the entry at 0 or less.

The derivation is in the doc.