benilla-re systems structs docs

s_m2Cache

global · models

Address
0xceefb0 · 4152 bytes, up to 0xceffe7
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.

offsetholds
+0x000initialized flag
+0x004granted feature mask
+0x008scene sort and draw mode, stored by 0x706e00
+0x00c, +0x010release list: head, address of the tail link
+0x0141021 bucket heads of shared models
+0x100c to +0x1028helper thread: handle, running, stop, start event, done event, thread context, job, argument
+0x102c, +0x1030vertex shader array (1800 handles), pixel shader array (32 handles)
+0x1034a 4-byte device object the texture loads read

The derivation is in the doc.