s_m2Cache
global · models
- Address
0xceefb0· 4152 bytes, up to0xceffe7- Type
M2Cache- Meaning
- Holds the model cache
- Confidence
- verified, proof one
- Finding
- models/cache#cache-object
Finding: Cache object in models: the cache
The cache is a 0x1038-byte static. Its constructor zeroes the initialized flag, the 1021 bucket
heads and the release list, and creates the two thread events; its destructor logs
Model2: M2Destroy never called when the flag is still set, then closes the thread and the events.
| offset | holds |
|---|---|
+0x000 | initialized flag |
+0x004 | granted feature mask |
+0x008 | scene sort and draw mode, stored by 0x706e00 |
+0x00c, +0x010 | release list: head, address of the tail link |
+0x014 | 1021 bucket heads of shared models |
+0x100c to +0x1028 | helper thread: handle, running, stop, start event, done event, thread context, job, argument |
+0x102c, +0x1030 | vertex shader array (1800 handles), pixel shader array (32 handles) |
+0x1034 | a 4-byte device object the texture loads read |
The derivation is in the doc.