Fast on a Cheap Phone: A Performance Lab
Ten days of measured fixes on a real kids’ game: web and native, low-end to high-end, every experiment kept or rejected
A hands-on performance course built from real work on Dunyati, a code-drawn kids’ game that runs on React Native (Skia) and the web (SVG). Measure first, then fix: frame budgets and device classes, zero-re-render native frames, forced layout, culling and adaptive quality, startup and world open, memory and an engine that sleeps, the experiments that failed, an invisible CSS cost, a canvas stage drawn by the native renderer, and the open performance ledger that recorded all 35 experiments. Every fix has a before/after recording and the design principles behind it.
- 01Measure Before You Touch
- 02The Native Frame: Zero Re-renders, Fewer Allocations
- 03Read, Then Write: Forced Layout, Pointer Storms and the Spotlight
- 04Paint Less: Culling, Adaptive Quality and Raster Tiles
- 05Start Fast: Kit Build, World Open and Lazy Scenery
- 06Memory and Sleep: Leak Checks and an Engine That Rests
- 07The Experiments That Failed (and Why They Are Worth Keeping)
- 08Find the Invisible Cost: a CSS Animation and a Shared Paint Layer
- 09Draw It Yourself: a Canvas Stage with the Native Renderer
- 10The Performance Ledger: Record, Compare, Merge