s_packetCapacity
global · lighting
- Address
0x80ffc8· 4 bytes, up to0x80ffcb- Type
const float- Meaning
- Holds 6144.0, a weather packet's capacity
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#particle-packets
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.