Home Guides Tickrate, CPU and bandwidth

s&box server tickrate: what 30, 60 and 120 Hz cost

Updated

What 30, 60 and 120 Hz ask of your server's CPU and bandwidth, and how to keep every tick inside its time.

How long one tick may take

The tickrate is how many simulation steps the server runs every second. At 30 Hz the host has 33.33 ms per tick, at 60 Hz 16.67 ms, and at 120 Hz 8.33 ms. Everything in a tick has to fit in that time: the C# scene update, the Box3D physics step, the lag-compensation history and the network update.

The scene update and the physics solver run one after the other on the main simulation thread, so the speed of one core matters far more than the number of cores. Pick fast cores over many cores. We have not tested specific CPUs.

Tickrate   Frame Budget   Target Sim Budget     Headroom for Physics/GC Spikes
------------------------------------------------------------------------------
30 Hz      33.33 ms       <= 22.0 ms            11.3 ms buffer (64-slot RP/Build)
60 Hz      16.67 ms       <= 11.5 ms             5.1 ms buffer (32-slot Standard)
120 Hz      8.33 ms       <=  5.5 ms             2.8 ms buffer (8-16 slot Comp PvP)

Hardware for your game mode

A higher tickrate only helps if the server finishes almost every tick inside its time. For cores, RAM and bandwidth per player count, use the hosting calculator. It is an estimate, not a measurement.

Keep physics cheap

Lag spikes on a physics-heavy server usually come from props that are stacked or stuck together and never go to sleep, not from game code. When twenty props jam in a doorway, or a welded vehicle hits the world at high speed, the physics solver has to do many more passes.

Limit the number of moving physics props per player, remove abandoned debris on a timer, make furniture that never moves a static collider, and use compound convex hulls instead of mesh-on-mesh collisions.

Send less data

Outbound traffic grows with ConnectedPlayers × ChangedSyncPropertiesPerTick. If 48 players are connected and a component changes a [Sync] float on every player pawn 60 times per second, the host has to send 48 × 48 × 60 = 138,240 property updates every second.

Round values that do not need to be exact, and write a [Sync] property only when the value changed enough to matter. For example:

public sealed class StaminaTracker : Component
{
    // Replicated to clients only when the rounded integer percentage changes.
    [Sync] public int SyncedStaminaPercent { get; private set; } = 100;
    private float _exactStamina = 100f;

    protected override void OnFixedUpdate()
    {
        if ( !Networking.IsHost ) return;
        _exactStamina = Math.Clamp( _exactStamina - Time.Delta * 4.5f, 0f, 100f );

        int rounded = (int)MathF.Round( _exactStamina );
        if ( Math.Abs( rounded - SyncedStaminaPercent ) >= 2 )
        {
            SyncedStaminaPercent = rounded; // Sends an update only when the value moved by 2 or more.
        }
    }
}

Measure your own server

Open the F11 Performance Hub (the perf_hub console command, added in build 26.10.13) to see CPU, memory, network and UI frame times side by side.

On the host, do not allocate in OnUpdate and OnFixedUpdate: no new List<T>, no LINQ .Where().ToList() chains, no string interpolation. Gen0 and Gen1 garbage collection pauses can push a tick over the 16.67 ms line.

Quick reference

SettingValue
Time per tick at 60 Hz16.67 ms
Time per tick at 30 Hz33.33 ms

Tool: Hosting calculator.

Unofficial and general. The s&box API changes between versions; check the Facepunch documentation before you copy code.