benilla-re systems structs docs

Rain::Update

function · lighting · primitive

Address
0x6756a0 · 1055 bytes, up to 0x675abe
Signature
void __thiscall (Rain *this)
Meaning
Retires and discards rain packets, then opens, fills and closes the frame's packet
Confidence
verified, proof one
Finding
lighting/precipitation#particle-packets
Test
lighting::wl_update_dt_accum, lighting::wl_update_interval_div

Finding: Particle packets in lighting: precipitation

A rain packet holds 6144 drops of 0x24 bytes: position, velocity, and birth and death in seconds of fill time. After them come the count +0x3600c, the start and last ticks +0x36010 and +0x36014, the fill time +0x36018 and the vertex buffer +0x3602c. A packet opens when the first drop of a new batch is due: its start tick is now plus the time 6144 drops take at the current rate. Every drop raises the last tick to the start plus its death plus the time its tail takes to fall 2 yards. The packet closes, baking its vertex buffer, when it is full, its fill time reaches P·(1/6144) for the rate's base P (rain-rates), or now passes its start.

The derivation is in the doc.

Callers 1

Callees 13

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