Netcode
Classic, Instant and Light, the drawn moment, why we guess, and what waits for the server.
The server decides everything. Netcode is how your screen keeps up with it. Pick yours in Settings, Network, Netcode. Every measurement: Netcode measurements.
How it works now
- The server decides everything. Your browser runs the same physics and replays your keys the server hasn't seen yet.
- Automatic is the default: Classic, moving to Light only as Auto quality's last step on a slow computer. Instant is a choice in Settings.
- Key press to screen at 40 ms ping: Classic 40.2 ms median, Instant 11.3 (15 Nov 2026, test harness).
- Updates go over a WebSocket as wire 4: each ball's change on its own against a prediction both ends make. With 4 people and 4 Expert bots, 6.0 to 6.2 KB a second per player; every frame carries a 16-bit checksum.
- Replay skip: about half of updates skip the replay in a 4 v 4 with Expert bots.
- Other balls are guessed from the newest snapshot's keys for 2 ticks, then their recent push, fading.
Last checked: 16 Nov 2026.
Key decisions
| Decision | Why | Rejected | Date |
| Classic, keys applied when the server applies them, is the default mode | Your ball is never ahead of the server, so it rarely snaps; the classic game feels that way | Instant as the default (tried for part of a day) | 13 Nov 2026 |
| Automatic moves a slow computer to Light only as the last step | Light runs no physics; the step is kept only when it measured a gain | Light picked by default | 16 Nov 2026 |
| Wire 4: each number coded as its distance from a shared prediction | 21 to 31% less data per player, and the expanded update keeps the same bytes and checksum | None recorded | 16 Nov 2026 |
| A snapshot every tick | Half-rate and adaptive snapshots were judged and left out: 51 and 15 feel rows worse | Half-rate, adaptive | 16 Nov 2026 |
| Guess other balls from their keys and recent push | Every other rule measured worse on wobble or error | Holding the snapshot's keys (raised wobble 5 to 100%); drawing others in the past (2 to 6 times the wobble) | 16 Nov 2026 |
| A drawn moment at an even 60 ticks a second for your own ball | A server stall shows as a moment more delay, never your ball speeding up | Other balls on the same timeline (a ball nudged within a step lurched for two frames) | 16 Nov 2026 |
| Pacing a room by its players' pings: built, off | Measured live, it did no better | None recorded | 13 Nov 2026 |
Changes that mattered
- 16 Nov 2026: wire 4: 21 to 31% less data per player. Wire 4
- 16 Nov 2026: your own ball on an even pace: 2 to 2.5 times steadier on the live rooms' timing. Smoothing your own ball's speed
- 16 Nov 2026: other balls' wobble measured and its cause found: the keys they press next. Why other balls wobble
- 16 Nov 2026: Light no longer turns your ball back a step short of a wall. The bug
- 16 Nov 2026: a fast hit into a wall was drawn bouncing early; fixed. The bug
- 15 Nov 2026: time never runs backwards on a key frame; other balls' kinks went from 265 to 1,000 a minute to 0 to 0.4 in an emulated test. Chasing crispness
- 13 Nov 2026: Classic and Instant named, Classic the default. Netcode: what we tried and what we kept
Known limits and next
- Light still shows 2 to 4 snaps a minute per ball.
- Other balls wobble 12 to 49 times a minute even on their real keys' path; half of it is wrong guesses of keys not yet pressed.
- Built, off: redundant inputs and acked deltas for lossy links (switches INPUT_REDUNDANT_LIVE, WIRE_ACKED_LIVE); WebTransport on Dedicated (WEBTRANSPORT_LIVE); four wire size cuts (PING_SLOW_LIVE, STATS_DIFF_LIVE, WIRE_AGE_LIVE, BUNDLE_EVERY_LIVE); other balls drawn behind (OTHERS_INTERP).
- Numbers from the test harness, not live, unless said.
Classic
The default. Your keys take effect when the server applies them, about half your ping after you press. Your ball is never ahead of the server, so it rarely snaps. The rest of the field is guessed half a round trip ahead of the newest update.
Instant
Your keys move your ball at once, in a copy of the game in your browser running the server's own physics code. Each update from the server resets that copy and replays the keys the server hasn't seen yet. Fastest, but your ball can snap when a guess was wrong.
Light
For slow computers: no physics in your browser. It draws the server's newest update a tick or two late and curves balls between updates. Everything you see is about a ping late. Pick it yourself, or leave the netcode on Automatic: Auto quality moves to it only as its last step, when prediction itself is the heavy part (Auto quality).
The drawn moment
In Classic your ball is drawn a little behind the game your browser runs, at a moment of its own:
- Your ball's last 32 steps (position and speed) are kept, and the frame draws it at the drawn moment between two of them.
- The drawn moment runs at an even 60 ticks a second. It drifts toward where the clock estimate says it should be by 1% a tick, 3% once it's over 3 ticks off, and never runs more than a tick ahead; past the newest step your ball carries on at that step's speed.
- Over 12 ticks off (after a freeze, or switching netcode) it starts over from the estimate.
- When a snapshot rewrites the steps under the drawn ball, the difference goes into your ball's correction and eases out.
- Portals, blinks, swaps and respawns are drawn as jumps, not a roll.
So when the server falls behind and catches up, you see a moment more delay that fades, never your ball speeding up or slowing down. On the live rooms' timing your roll is 2 to 2.5 times steadier; it adds 0 ms of drawn delay at the median and 12 ms at the 99th percentile. Other balls keep their own smoothing: drawn on the same timeline, a ball nudged within a step lurched for two frames, so that stays off. Instant and Light are unchanged. The switch is TIMELINE_LIVE.
One holder per flag
A grab shown before the server's word, yours or another ball's, ends the moment a snapshot shows someone else holding that flag. No drawn frame has more holders of a kind of flag than the map has flags of it: past that, only the newest snapshot's holders keep it and every guess waits. Before, two balls reaching a neutral flag together could both show holding it for up to 20 frames.
Wire 4
Each update is the change since your last one. Since wire 4 each ball's change is coded on its own: a byte saying what changed, then each number as how far it is from a prediction both ends make the same way (speed plus the keys' push, damped; place moved a tick by that speed). The expanded update is the same bytes as before, with the same checksum. With 4 people and 4 Expert bots it's 21 to 31% less data per player: 6.0 to 6.2 KB a second, from 7.6 to 8.9. More: Wire 4.
Key press to screen
Measured 2026-11-15 on an M3 Max: headless Chrome, a room on the same machine, a simulated round trip. Median / 95th percentile in ms; a real screen adds about one frame.
| Mode | 0 ms ping | 40 ms ping | 100 ms ping |
| Classic | 25.9 / 32.6 | 40.2 / 45.3 | 75.6 / 82.8 |
| Instant | 9.5 / 16.4 | 11.3 / 31.3 | 23.6 / 31.9 |
Replay skip
In Classic and Instant each update resets your browser's copy of the game to the server's state and replays the keys since. When every ball and prop in the update matches what prediction already had for that tick, exactly, the replay would rebuild the same state, so it's skipped. It isn't skipped when a portal or pad comes back to life or anything else changed that the replay would apply, or when a stepped tick guessed the keys wrong for a ball that could reach yours before the drawn moment. A ball out of reach steps on as it was, and the next snapshot puts its path right. With 4 v 4 Expert bots about half of updates skip (55% at 35 ms, 47% at 150; it was 22% and 0); on Lab: Big 96%, on Lab: Gravity 99.6% (moving parts travel as their exact float32 state since wire 3; it was 93%). A full replay still runs at least every 24 updates.
Light in a simulation at 35 ms ping: a median of 58 ms, against 52 for Classic and 41 for Instant. On the ball pit with the CPU slowed 10 times, joining over a 40 ms link, Light spent 4.1 ms a frame (6.2 at p95) with 1 frame over 16.7 ms in 6 seconds; Classic spent 5.8 (41 at p95) with 61. Light still shows 2 to 4 snaps a minute per ball; that's next.
What shows at the touch
In Classic and Instant these are drawn the moment they happen on your screen:
- Tags with your ball, when the game is sure: the balls are close and closing fast. Measured, 0 wrong in about 120 guesses.
- Bombs, when no other ball is within 1.5 tiles of the trigger: the push and the blast. About 3% of guessed bombs get undone. A right guess doesn't snap: your drawn path starts where the replay's last step ran from.
- Powerup and item pickups, when no one else is near. The server's pickup is matched by item and kind within 1 s, so none shows twice.
- Other balls' bombs, when the guessed ball is inside the trigger by more than its guess could be off: 0.25 + 0.045 k² px at k ticks past its snapshot (0.8 px at 4 ticks, 2.9 at 8). None were shown and taken back at 35, 80 or 150 ms.
- Tags between other balls, when the game is sure, and never while either ball's guessed path crosses a portal (other balls' portal trips aren't predicted). Unsure touches wait; holding both balls measured 2 to 5 more kinks a minute after carrier pops.
- Space: fires the item the room fires. A blast is predicted only from your own press.
- Your grabs and caps, when no other ball is within 1.5 tiles (no enemy, for a cap).
- Neutral flag handover: the flag moves to the tagger at the pop when the tag is certain: no portal on either guessed path, and the two meet head-on enough that both places being off by their guess's uncertainty wouldn't make them miss. Otherwise the flag waits for the server's word.
- Your portal trips: one jump, full speed kept, no stutter.
- Blinks and swaps: drawn there at once.
- Boost pads, walls, kicks, dashes, jumps and Slow-mo.
Why we guess
Other balls are drawn where the game guesses they are now: their keys from the newest snapshot for 2 ticks, then their recent push, fading. Snapshots carry every ball's keys, so a guess covers only the ticks past the newest one (3 to 7 at p50, 6 to 16 at p99). Measured on 16 Nov 2026 (Foundry, 4 v 4 bots, Classic, the live rooms' timing):
- The wobble is the future keys. Stepped on the keys they really pressed, other balls wobble 12 to 49 times a minute with almost no error. Half the wobble is wrong guesses; the rest is each correction blending in.
- Committing to keys is worse. Holding the snapshot's keys is wrong less often (36% against 87% at 8 ticks past), but every rule that commits raised wobble 5 to 100%: a wrong commitment is a bigger correction. The averaged push stays.
- Softer blends cost accuracy. A blend that halves the wobble doubles other balls' error at p99. Small corrections now swing at most twice a ball's push, which cut wobble 3 to 11%.
- Drawing others in the past is worse. Half or one snapshot behind: 2 to 6 times the wobble, 6 to 35 jumps a minute and touches drawn 2.5 to 15 px apart (today 0.5 to 3.6). Far enough behind to cover late snapshots: smooth, but touches up to 26 px apart. Measured and left off (OTHERS_INTERP).
More: Why other balls wobble.
What waits for the server
These show once the server says so, about half a ping after its tick: measured 20 to 31 ms after it at 35 ms ping, 46 to 54 at 80, 82 to 104 at 150.
- pops on spikes, gates and traps
- contested bombs, grabs, caps and pickups
- other players' tags the game isn't sure of
- other balls' portal trips, drawn as one jump, never back
A tag the game wasn't sure about holds the other ball at the touch. When the server's word comes, the two balls are drawn meeting first, over 33 ms and never more than 50 ms after the word, so a pop never happens at a distance: the gap at the pop is under 1.2 px.
Frame timing
Two fixes from 15 Nov 2026: time never runs backwards on a key frame (other balls kinked 265 to 1,000 times a minute in an emulated test, now 0 to 0.4), and ticks skipped after a server burst are filled with your held keys at low ping (4 to 5 two-tick skips a minute at 15 ms, each 33 ms; now the worst skip is 0.09 of a tick). The camera moves in sub-pixel steps while it moves and snaps sharp at rest: the background stepped unevenly on 40 to 55% of frames, up to 0.9 px; now 0 px at 60, 120 and 144 Hz. A tab coming back from the background resyncs cleanly.
Numbers are from the test harness on 15 Nov 2026 unless said. The story: Chasing crispness and Netcode: what we tried and what we kept.