Skip to content

Lesson 4 of 9 · 24m

Tick Rate, Fixed Timestep, and Time as a Budget

Understand ticks as simulation deadlines, separate render rate from simulation rate, and budget CPU before marketing a number.

"128 tick" became a marketing phrase before it became an engineering requirement. Players repeat it because higher tick rates can reduce quantization delay. Engineers should hear something else: the server now has less than eight milliseconds to simulate everyone, every time, forever. Tick rate is a CPU budget and a consistency contract before it is a latency feature.

Render frames and simulation ticks are different clocks

A client may render at 144 Hz while the server simulates at 30, 60, or 128 ticks per second. The render loop draws interpolation between known states; the simulation loop advances authoritative gameplay. Coupling them makes gameplay speed depend on GPU performance and makes replication irregular.

accumulator = 0.0
step = 1.0 / 60.0

while running:
    frame_dt = clock.elapsed()
    accumulator += min(frame_dt, 0.25)
    while accumulator >= step:
        receive_inputs()
        simulate(step)
        accumulator -= step
    render(accumulator / step)

The clamp matters. Without it, a stalled process wakes up and tries to simulate eternity in one frame — the classic spiral of death.

A tick is a deadline, not an average

If a 60 Hz server occasionally takes 20 ms for a tick, the average may still look acceptable while players experience time dilation. Measure worst-case and percentile behavior:

target tick          60 Hz = 16.67 ms per tick
p50 simulation       4.2 ms
p95 simulation       9.8 ms
p99 simulation       18.9 ms  <- the server is late under load

Late simulation means input application, hit validation, snapshot creation, and network send time all slide. The system rarely fails cleanly at the exact moment the budget is exceeded; it degrades through jitter first.

Higher tick rate is not free accuracy

Raising tick rate reduces simulation quantization and can make input timing finer. It also increases CPU cost, packet cadence, delta volume, timer sensitivity, and the impact of scheduling jitter. Going from 30 to 60 tick often matters. Going from 60 to 128 may be invisible if animation, input sampling, interpolation, and network variance dominate the experience.

tick rate   interval   server budget implication
20 Hz       50 ms      forgiving, coarse gameplay timing
30 Hz       33.3 ms    common for large worlds or many entities
60 Hz       16.7 ms    responsive mainstream target
128 Hz      7.8 ms     competitive niche, unforgiving scheduler

Bandwidth can be managed with send rates lower than simulation rates, but then the network representation diverges from simulation cadence. Write down which rate means what.

Fixed timestep does not mean fixed latency

Clients send inputs when they can, packets arrive when they arrive, and the server queues them for ticks. A fixed timestep makes simulation reproducible and validation easier. It does not make network time fair or constant. You still need command sequencing, interpolation clocks, and bounded lag compensation windows.

Time dilation is sometimes the honest failure mode

Some simulations slow down when overloaded rather than dropping work silently. That can be correct for deterministic lockstep or co-op simulation, but disastrous for competitive real-time play because it changes the meaning of deadlines. Decide whether overload causes slow time, dropped low-priority replication, reduced entity fidelity, or match failure. "Whatever the scheduler does" is not a design.

Field notes

  • Measure tick duration including input processing, physics, gameplay, replication, and serialization — not just physics.
  • Operating-system timers and virtualized CPU steal time can ruin a theoretically sufficient budget.
  • Do not let unbounded input queues turn latency into a memory leak; cap and account for missing commands.
  • Marketing a tick rate while silently scaling it down under load is worse than choosing a lower honest target.

Was this lesson helpful?

Sign in to rate