|
group2 0.1.0
CSE 125 Group 2
|
Server-side replication tuning parameters. More...
#include <NetworkConfig.hpp>
Public Attributes | |
| int | snapshotHz = 128 |
| How often the server emits a registry snapshot. | |
Server-side replication tuning parameters.
PR-13 (post server-perf): default snapshot rate is now 128 Hz (= tick rate). This is the same cadence Valorant / CS2 / Apex run. Pre-PR-13 default was 32 Hz, chosen as a bandwidth/CPU compromise; PR-10's snapshot delta encoding makes the wire cost of 128 Hz roughly 0.8× the pre-PR-10 32 Hz baseline (4× more snapshots × 0.2× each via delta) — i.e. cheaper than where we started, despite 4× the rate.
What this buys:
Override with [serverRep] snapshotHz = N in config.toml or the SERVER_SNAPSHOT_HZ env var if you need to claw back bandwidth on a constrained network. Lower values (e.g. 64 Hz or the legacy 32 Hz) still work — render-delay-interpolation (PR-11) and lag-comp (PR-12) both adapt automatically via the snapshotEveryNTicks field.
| int ServerReplicationConfig::snapshotHz = 128 |
How often the server emits a registry snapshot.
PR-13 default: 128 Hz (full physics-tick rate). Tournament- title cadence; render delay ≈ 16 ms with PR-11's 2-snapshot interpolation buffer.