Client speed measurements
Every client speed measurement: first load, the busy frame, Auto quality, the obfuscator.
Every measurement behind Making it fast, moved here from the devblog post Client speed: loading and drawing. Measured 15 and 16 Nov 2026.
Measured how: production builds served as Cloudflare serves them (HTTP/2, brotli, the site’s cache rules) over a shared 5 Mbps, 28 ms link with the CPU slowed 4 times and a fresh profile, medians of 3; the busy frame at 1366 by 768, GPU on, CPU slowed 4, 6 and 10 times, every ball in an animated flair and trail, a burst of events every 2.5 s. The Mac was shared (load 2 to 89 across these runs; each table says), so per-thread milliseconds a second are the steady read, frame counts swing.
First load
- 15 Nov: every page waited for about 690 KB of compressed code with every map and flair; now a small core first and the rest in the background. The devblog list stopped loading post bodies: 62 KB to 4 KB.
- The game chunk held the server’s room and bots (about 220 KB compressed) through two small imports; a tiny module now answers “can this browser host”: 350 to 122 KB.
- Practice, the Sandbox and the tutorial run their room in a Web Worker (the main thread only does input, prediction and drawing). The worker now starts with the page, its 600 KB script loading the physics while the page’s code loads: about 2 s to 0.9.
- The service worker’s install fetched all 437 files again (about 6 MB) during the first game. Now it keeps the first page’s 61 files (0.67 MB) from the HTTP cache and takes the other 389 (5.6 MB) once a non-game page is idle.
- Result on the slow line: a first visit straight into a game draws 1.2 to 1.8 s sooner, from 7.3 to 7.8 s (the new build alone at load 9: 5.3 s). Tried and left off: preloading the physics WebAssembly (103 KB) in the HTML; it went ahead of the page’s own code and Home mounted about 100 ms later.
The busy frame
| Cost found | Fix | Result |
| Page paint 86 ms a second: two CSS pulses repainting every frame | Scale and fade instead (compositor only) | 77 to 28 ms a second |
| Page layout 77 ms a second: toasts laying out the page | Toasts in a fixed box | Most no longer lay out |
| Trails and features 0.6 ms each: a colour string and stroke per piece | One colour’s alpha per piece, kept strings and gradients | Trails 0.62 to 0.40 ms a frame |
| The run clock | Each digit drawn once and stamped | Missed frames at 10x 54 to 28 a minute |
| A pop 40 to 60 ms of frame time at 10x, a cap up to 100 | Pooled sound buffers (22 ms built on the spot before) | Pop handling 17.9 to 5.1 ms |
| Events causing 2 to 3 whole-page React commits of 12 to 30 ms | HUD parts subscribe to the game on their own | About 2 commits of 6.5 to 8.8 ms |
| Backdrop gradients 9 in 10 of a software-drawn frame | Clipped where opaque tiles hide it | The same picture pixel for pixel |
| Layered maps drawing every floor | Only your floor; stairs cross-fade | Lab: Layers top floor 0.2 to 6 fps, 28 after Box2D |
| Snapshot handling about 1.2 ms a frame | Replay skipping (Netcode) | |
At 4x the main thread became a quarter less busy, in the ball pit at 10x half; at 6x the worst frames p99 25 to 16.8 ms (load 4 to 17). Canvas checks match within 3 levels of 255. Source: docs/bench/client-16.md.
Auto quality, measured
Each of Auto’s steps held alone at High showed that with a GPU, picture size isn’t what a slow CPU waits for: “no page effects” cut the main thread from 595 to 364 ms a second.
| Step held alone at High | Main thread saved | Scenes where it saved |
| No page effects | 26% | 4 of 4 |
| 75% size | 16% | 4 of 4 |
| Plain backdrop | 13% | 3 of 4 |
| 70% size | 9% | 3 of 4 |
| Fewer particles | 7% | 3 of 4 |
| Every other step | -8 to 7% | sign flips |
Busy 4 v 4 and the gravity pit at 6x and 10x, 2 runs each, load 2 to 18. On a 2x screen, 1x pixels saved 43 ms/s. Source: docs/bench/client-17.md.
- Auto read only the frame time’s p95, so at 6x 2 to 10% of frames missed at a 16.8 ms p95 and it never stepped. A second trigger now counts missed frames: over 20 a minute over 15 s (smooth reads 0 to 12). A step stays only if it bought 1 ms of p95 or cut misses by 40%, remembered per device for a day.
- The first version went live and was off the same day: it stepped players down on capture celebrations. Now one-off moments don’t count (a celebration 3.5 s, a blast 1.5 s, a respawn, the first 3 s), a step needs two windows in a row and waits for a calm moment, and after 60 s smooth the last step comes back off (the wait doubling up to 5 minutes). Five caps at 6x: first step down 4 to 5 s in became 37 to 46 s; picture changes in 50 s 9 to 10 became 1 to 2; ended 2 or 3 steps down became full or 1 down (load 9 to 20; docs/bench/client-18a.md).
- Without a graphics card the frosted bars cost the compositor 240 to 300 ms a second, 27 to 39 without: “no page blur” is that computer’s first step (load 17 to 72; per-thread times repeated, frame rates didn’t). Computers with 4 or fewer cores or 4 GB or less start one step down, and frames over 200 ms count as slow.
- A correction: the name-label cache saved about 0.06 ms a frame (0.23 to 0.17), not the 0.9 ms an earlier bench without fonts read.
The obfuscator, removed
The build ran an obfuscator (renaming and a string array). It made the page 23.7% bigger (2,228 to 2,754 KB brotli) and the busy frame slower: per-frame property reads became lookups the engine can’t optimise. Trimming its options got to +17.2% with only the per-frame modules plain (busy frame script at 6x 8.7 to 6.2 ms, missed frames 744 to 199 a minute; at 4x 4.7 to 4.4; load 19 to 41, and a second pair at 19 to 26 put it within the noise of none), giving back 145 KB compressed, 60 KB of it the renderer’s chunk. Then it went entirely: the server decides everything that matters, so it hid nothing a cheat needs and made every error report unreadable. The page is 390 KB smaller (4,814 to 4,424 KB with the worker bundles), the first page 210 to 179 KB, and a build 394 s became 26 s (then 17, 12, 10 as caches warmed; load 57 to 89). About 60 deploys paid that build that day: about 6.5 hours of building at 394 s each, over an hour and a half even at a quarter of that on a quiet machine (Not known: no quiet build was timed).
| Obfuscator variant | Page code, brotli | Against none |
| Renaming, string array, rotate, shuffle, a wrapper | 2,754 KB | +23.7% |
| Without rotate, shuffle and wrappers | 2,743 KB | +23.2% |
| Identifier-like strings kept out of the array | 2,683 KB | +20.4% |
| Every game and shared module plain | 2,529 KB | +13.5% |
| Only the per-frame modules plain | 2,610 KB | +17.2% |
Source: docs/bench/obfuscation-16.md.
Also found: the build time was written into two core chunks, so nearly every hashed file was renamed on every build and returning players re-downloaded unchanged code. It lives in a meta tag now; two builds of one source give identical names.
Lists that don’t reload
The store’s grid mounted rows near the screen and dropped them as they left, so scrolling back redrew them. Now the rows on screen mount first and the rest one at a time while idle; unmounted rows show a placeholder at the row’s height; after 400 ms quiet, card stills are drawn ahead inside the frame budget and never evicted.