s_worldTicks
global · terrain
- Address
0xc62970· 4 bytes, up to0xc62973- Type
uint32_t- Meaning
- Holds the world clock in 1/1024 s ticks; 0x66fcc0 advances it
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#particle-clock
Finding: Particle clock in lighting: precipitation
The particles run on a clock of 1024 ticks a second. Each world update adds the frame time to it as round(t·1024 − 0.5) ticks, ties to even, so an exact odd t·1024 comes out one tick low; particle times convert the same way, and back as ticks/1024. The frame's tick count is kept beside the clock.
The derivation is in the doc.