s_lightningLastUpdate
global · spell
- Address
0x870e20· 4 bytes, up to0x870e23- Type
uint32_t- Meaning
- Holds the clock of the last lightning update, -1 by default; written by 0x6eca20 and 0x6ec130
- Confidence
- verified, proof one
- Finding
- spell/visuals#frame-update
Finding: Frame update in spell: visuals
The world frame's 0x483460 calls 0x6ecb20 and then 0x6eca20. 0x6ecb20 renders the beams
from the world camera's position. 0x6eca20 reads the clock once as now, then: updates every
chain, unlinking and releasing each whose update returns 0; updates the renderer with
dt = (int32)(now − last) · 0.001f, 0 when last is -1, and stores now as last; updates the
tint; updates every emitter, destroying each whose update returns 0 and returning it to its pool.
The derivation is in the doc.