How I work

Slot games run on whatever phone the player has, inside an operator's page full of other scripts. The game gets a slice of a frame, not the whole thing. And the teams that build them ship dozens of games a year on a shared codebase. So I care about two things more than anything else: the frame budget, and how quickly a developer can do the right thing without asking me.

01

Performance is a budget, not a vibe

A frame is 16.7 ms and a phone is not a MacBook. I write the budget down, measure against it, and publish the numbers with the conditions they were taken under, including what they don't prove.

pixi-marrow DESIGN.md §16; Spine Benchmark error bands

02

Measure in pixels, not by eye

Renderers get checked by renderers. Headless Chrome draws the hard cases and a script compares pixels across backends and against the reference runtime.

check-render.mjs in pixi-silk and pixi-marrow; D3D11 CI job

03

Size is a CI gate

Every library has a committed size baseline and a check that fails the build when it grows. Expensive features are opt-in by name, never hidden in a default.

size-check.mjs in reels, wheels, silk, marrow; zvuk size-limit

04

Headless and deterministic

Game logic that only works with a GPU and a real clock can't be tested. My engines run in Node with a fake ticker, and they ship that harness to users as a public export.

pixi-reels/testing, pixi-wheels testing, zvuk Web Audio mock

05

Docs are built from the code

Numbers in a README come from a facts file the tests also read. Examples are imported from the template they describe. llms.txt is generated and diff-checked in CI.

marrow facts.json + check:facts; slotplate docs; build-check.yml

06

Engines stay out of the game

Reels don't know the paytable, wheels don't know the RTP, the HUD doesn't know the RGS. Small typed surfaces: builders, presets, typed events, strict TypeScript with noUncheckedIndexedAccess.

pixi-reels ADR 007; WheelBuilder; open-slot-ui headless core

Performance

I start from the budget and work backwards. At 60 fps a frame is 16.7 ms, and a slot game in a casino lobby gets maybe half of that. So every library answers the same questions before it gets a feature: what does this cost per frame, what does it cost at rest, and what does it upload to the GPU?

  • Idle should be free. pixi-marrow puts resting skeletons to sleep: 200 instances update in 0.02–0.04 ms and upload 0 bytes, where the official runtime uploads 0.2–3.4 MB per frame.
  • Batch by design, not by luck. marrow keeps additive blending inside the batch and rewrites vertex data in place, so 200 coins are one draw call instead of 400.
  • Keep data on the GPU. Pylinka compiles particle graphs into WGSL and GLSL so particle state never round-trips to the CPU, and a knob change is a single uniform write.
  • Publish the conditions. Every benchmark says what machine and what scene it used, and what it doesn't prove. "Desktop numbers; they say nothing about phones" is a sentence that appears in my docs on purpose.
  • Admit when the model is wrong. Spine Benchmark's original scoring model explained 2% of real device timings. I deleted it, and 106k lines with it, and replaced it with per-device calibration that prints its own error.

Developer experience

The person using my library is usually a game developer three days from a deadline. They don't want to read my source; they want the obvious call to be the correct one.

  • One obvious entry point. new ReelSetBuilder(), MarrowSpine.load(), createPylinka(), mountHud(). Presets for the common cases, typed events for everything else.
  • Strict types that catch real bugs. strict everywhere, noUncheckedIndexedAccess in most repos, exactOptionalPropertyTypes where config objects are large.
  • Ship the test harness. pixi-reels and pixi-wheels export a fake ticker and helpers like spinAndLand and expectGrid, so game teams can test their own flows in Node.
  • Docs you can run. pixi-reels has 200+ live recipes; Pylinka has an editor and a phone preview app; Spine Benchmark is a web app you drop files into.
  • Docs for agents, too. Every docs site has an llms.txt, and pixi-marrow ships an AGENTS.md inside the npm package. A lot of code is now written with an assistant open; the docs should work for both readers.
  • Decisions written down. Each library keeps architecture decision records next to the code. When someone asks "why doesn't the engine handle paytables?", the answer has a link.

Process

I work in focused bursts on one library at a time: pixi-marrow went from first commit to npm in two days and to 0.3 in eleven. That speed only works because the process catches mistakes regardless of who, or what, wrote the code:

  • Conventional commits and changesets; a PR that changes a published package without a changeset fails.
  • CI runs lint, typecheck, tests, build, the docs build, a check of what goes into the npm tarball, and the size gate.
  • Releases go out through npm trusted publishing with provenance. No tokens on laptops.
  • Renderers get pixel checks in headless Chrome, plus a Windows Direct3D job for pixi-silk.
  • I use coding agents daily, and the repos are set up for it: CLAUDE.md / AGENTS.md in each one, the same gates for every commit.

At work

My day job is leading frontend at a slot studio group, where I grew the frontend org from zero to 35+ engineers across several studios and shipped 47 games in three years. The open-source work comes from there: each library is something I watched several teams build separately, and decided to build once.

Full CV