Impact Dynamics / Reference
Performance
Impact Dynamics is built to cost nothing when nothing is happening.
Client
- Only the driver's car is watched. Passengers and pedestrians run no crash detection. The car is sampled every 50 ms while moving and every 250 ms while stopped - a handful of native reads per sample, no per-frame work.
- Nothing runs per frame unless something is happening: the debris throw, swept pieces sliding away, a jammed door being held, driving above 15 km/h with a bent front wheel, the climb fade.
- Light checks while you drive: windows / wheels every 400 ms, steering pull every 400 ms, wheel status and fuel leak once a second, tyre punctures once a second (every 300 / 100 ms near debris). Anyone in a car with jammed doors checks them every 500 ms.
- Debris props are local, not networked. Each client builds a field from its seed when within 90 m and removes it past that. Small detail pieces only exist within 35 m; once a client has 700 props up (
MaxProps), the small detail pieces of far fields wait. - Who has bent wheels nearby is worked out once a second; their lean is re-applied every 100 ms (
Config.Wheels.VisualRefreshMs) while one is within 40 m.
Server
- Crash reports are event-driven and rate-limited: at most 8 crashes per player per minute (6 of them with debris), 450 ms between hits on one vehicle, 10 window / wheel sheds per minute.
- Debris fields are small tables (a seed and a position) sent to the players in the same routing bucket; follow-up drops and swept pieces go only to players near the field.
- Background tasks wake every 30-60 seconds (field lifetimes, old cooldowns).
- The framework is only asked on a Force-the-door or sweep attempt.
Tuning for busy servers
| Setting | Lower it to ... |
|---|---|
Config.Debris.MaxProps |
hold back more detail pieces per client. |
Config.Debris.Counts / Deeper.Max |
shed fewer pieces per crash. |
Config.Debris.Lifetime |
clear fields sooner. |
Config.Debris.SpawnDistance / Detail.Distance |
build fields closer to players only. |
Config.Debris.Animate.MaxThrown |
animate fewer flying pieces. |
Config.Wheels.VisualCamber = false |
skip the bent-wheel lean for other players' cars. |
Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.