benilla-re systems structs docs

M2CacheConstruct

function · models · host

Address
0x706440 · 120 bytes, up to 0x7064b7
Meaning
Zeroes the model cache, its 1021 shared-model buckets and its release list, and creates its two thread events
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.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.