Dev Blog
How TagBalls got here, for other developers: what changed, the numbers, what didn’t work and what you can reuse.
- One Rust engine for the servers and the browser (23 Nov 2026): How the game moved from a TypeScript engine to one Rust engine that runs natively on the game servers and as WebAssembly in the page, how we proved it plays the same game, and what it costs now.
- Fixes, 22 to 23 November (23 Nov 2026): The notable bugs of 22 and 23 Nov and their causes: game server memory, bots, the snapshot decoder, game rules, and checks that nothing ran.
- How many games one server holds (23 Nov 2026): Load tests with real network clients, live measurements on a game server, the room limit from 4 to 64 and why, the per-address connection limit, and autoscaling.
- Bandwidth, wire size and latency (23 Nov 2026): What a player costs on the wire by room size, the snapshot format changes that cut it, a new format built but not on yet, and where the time between a key press and the game goes.
- Slow computers and page weight (23 Nov 2026): What slow devices report, how Low got cheaper while High stayed pixel for pixel the same, pages that never rested, and how much JavaScript each page loads.
- A security audit before launch (23 Nov 2026): A read-only audit of the site’s server code, fixes with a failing test first, and an independent review that broke the first fixes eight ways.
- Deploys: only tests a change can reach (20 Nov 2026): How our deploy chain picks the tests a change can reach, runs them side by side and cut the fixed waits. Staging a one-line change went from 18.2 min to 27 s.
- Rendering and netcode ideas we dropped (20 Nov 2026): Drawing and netcode changes we measured and dropped: a WebGL layer, cutting garbage, smoothing other balls, and what the lag on slow computers was.
- Fewer background requests to the site (19 Nov 2026): Game servers asked the site the same questions on timers, whether or not anyone played. What caused it, what we changed, and the counts before and after.
- Finds, trades and a TagCoins market (17 Nov 2026): Items found in play, spares that move in friend trades and on a TagCoins market, offers with fixed notes, holds on bought items, and refunds that spare buyers.
- Splitting the site into four Workers (17 Nov 2026): Game rooms used to share one Cloudflare Worker with the site, so every deploy restarted them. Now there are four Workers, and most deploys touch no game.
- Servers: sockets, pauses, capacity (17 Nov 2026): We moved competitive US West games to a one-core Node box. The socket library, one write per tick, the pauses, 8 games within our bar, cost and transfer.
- Rooms on Cloudflare Durable Objects (16 Nov 2026): Each game room ran as one Durable Object. Why its clock fell behind, how we caught it up, bounded bot searches, bots in their own object, and routing.
- Netcode: prediction and smoothing (16 Nov 2026): The page predicts and the server corrects. We measured every frame: what to guess, an even clock for your ball, why other balls wobble, what we dropped.
- Wire 4 (16 Nov 2026): Wire 4 codes each ball as the difference from a prediction both ends make. It sends 21 to 31% less data per player, and the expanded bytes stay the same.
- Client speed: loading and drawing (16 Nov 2026): How fast the first game loads on a slow line, what a busy frame costs on a slow laptop, how Auto quality measures each step, and why the obfuscator went.
- One database object under load (16 Nov 2026): One Durable Object, World, holds every account. What we moved off it, statements per request, Cloudflare’s 100-value limit, and why ids are never reused.
- Voice over WebRTC (16 Nov 2026): Voice goes browser to browser over WebRTC. Push to talk, devices that follow, one tab per member, the autoplay rule, and what caused each failure.
- Background tabs and the seat hold (16 Nov 2026): The page used to give up its game after 3 minutes in a background tab. Now it stays, and a dropped connection keeps its seat and reconnects by itself.
- A deploy chain for parallel workers (16 Nov 2026): One queue stages, tests and ships patches from many parallel workers. The steps, what went wrong in the chain, and the Dedicated Server’s first hour.
- Testing on a busy shared machine (16 Nov 2026): Up to 22 agents shared one 16-core Mac at a load of 30 to 120. Which tests failed from the load, and which tools trusted results they had not checked.
- Box2D in WebAssembly (15 Nov 2026): We moved from planck.js to Box2D v3 in WebAssembly, on the server and in every browser. Prediction matches the server bit for bit, and slow computers gain.
- Bots that drive like players (15 Nov 2026): Expert bots now hold top speed, race to caps exactly, juke tick by tick and time their pad shots. Every change was played against the bots before it.
- Ready for a crowd (13 Nov 2026): We took load off the one object that knows every account, fixed lag spikes caused by V8 recompiling, and made deploys warn players first.
- The map editor’s first week (13 Nov 2026): The editor went from live co-editing in the first build to tabs, draft links, height stamps, and map scripts that run on the server under a hard limit.
- 3D views, hills and Boostball (12 Nov 2026): The game gained five 3D cameras over the same game, 3D code that loads only when you pick it, smooth ground that rises and falls, Boost and Boostball.
- The Sandbox, offline play and the wiki (11 Nov 2026): Free play on any map, the game room running in a Web Worker in your browser, the site installed as an app that plays offline, and clips.
- Classic physics and smarter bots (10 Nov 2026): Every game moved to classic physics measured from play, the netcode got an input delay mode, and bots learned to play as a team.
- The store, friends and replays (9 Nov 2026): Cosmetics bought with TagCoins earned by playing, friends and messages, every match saved as a replay in the browser, and royalties for map makers.
- TagBalls is live (8 Nov 2026): The first playable build: team capture the flag in the browser, a server in charge at 60 ticks a second, prediction and a map editor.