Rain::EmitDrops
function · lighting · primitive
- Address
0x6754a0· 508 bytes, up to0x67569b- Signature
void __thiscall (Rain *this, void *packet, void *patter, float budget)- Meaning
- Emits round(min(6144 − count, budget) − 0.5) drops into the open packet and their patters
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#emission-budget
- Test
lighting::wl_emit_count_clamp,lighting::wl_emit_phase_advance,lighting::wl_emit_phase_advance_trajectory,lighting::wl_emit_phase_inc,lighting::wl_rain_drop_t,lighting::wl_rain_patter_vec,lighting::wl_rain_wind_gate
Finding: Emission budget in lighting: precipitation
An effect that is not stopping emits round(min(6144 − count, q) − 0.5) drops a frame, with q = min(frame seconds, 0.016667)·rate, and only when q is above 1. Below 60 frames a second the budget shrinks with the frame rate. Each drop's birth is the fill time plus a random fraction of the frame. The count rounds to even at a half, so a packet one short of full can stay there, and an exact odd min(6144 − count, q) comes out one low.
The derivation is in the doc.
Callers 1
- Rain::Update lighting
Callees 4
- NTempest::CRandom::uint32 random
- SecondsToWeatherTicks lighting
- Rain::SpawnDrop lighting
- SetPatter lighting
Calls and jumps by a bare address, from tables/calls.tsv.