benilla-re systems structs docs

s_weatherFrameCap

global · lighting

Address
0x80ffcc · 4 bytes, up to 0x80ffcf
Type
const float
Meaning
Holds 0.016667, the longest frame the emission budget counts
Confidence
verified, proof one
Finding
lighting/precipitation#emission-budget

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.