Game engine
Low3D
deploy/sofa-box/games/low3d.js
The box's game engine. It draws 3D on WebGL 1, with a flatter 2D fallback, or draws worlds on a grid with the processor alone. At its first start it looks at the box and picks a quality rung, and while a game plays a governor keeps the frame rate steady.
<script src="../pad.js"></script>
<script src="../low3d.js"></script>
JavaScript in one file · a browser, nothing elseSofa Box OS 1.1.28, 2026-11-07
What backs it
The tests play every game on it in headless Chromium, and walk 400 m across a streamed world: never more than 36 chunks held, the ground always there.
2D engine
Low2D
deploy/sofa-box/games/low2d.js
Games in pixels, on top of Low3D: a 480×270 picture drawn crisp on any TV, the rules sixty steps a second, three looks at two paces and never below 30, and the same menus, options and saves in every game.
<script src="../pad.js"></script>
<script src="../low3d.js"></script>
<script src="../low2d.js"></script>
JavaScript in one file · on top of Low3DSofa Box OS 1.1.43, 2026-11-09
What backs it
The tests play every game on it in headless Chromium.
Controller layer
SofaPad
deploy/sofa-box/games/pad.js
What every game on the box reads its controllers through: buttons by their place, so A and ✕ are the same button, both sticks, the triggers, rumble, and a player for every controller, numbered as it connects.
SofaPad.on((button, how, player) => { … })
JavaScript in one file · the browser's Gamepad APISofa Box OS 1.1.16, 2026-11-03
What backs it
Every one of the box's own games reads its controllers through it.
Frame times, as a stand-in Pi 3
Games bench
tools/games-bench.mjs
Times every scene of every game the same way. It serves the games, starts a Chrome of its own at the box's screen size with WebGL 1 only, makes each game's own work twenty times as long, about what a Raspberry Pi 3 does to it, and counts frames a second, late frames, the work a frame, draw calls, triangles, pixels filled and garbage made. Point it at two checkouts and the numbers say what a change did.
$ node tools/games-bench.mjs --box pi3 --games tidewing --secs 15
Node and Chrome, nothing elseSince 2026-11-11
What backs it
The frame table in the engine guide comes from it: Cinder Knight, 60 frames a second and none of 602 late. It says what it can't be, a Pi: the GPU is the computer's own, so every number it prints is that computer's.
glTF to Low3D, no Blender
Model packer
tools/low3d-models.py
Brings models made elsewhere, in glTF and flat colours, into a Low3D page as data: each model's colours, the box it fits in, and its vertices and triangles packed as bytes. When a model has more triangles than a Pi 3 should draw, its own mesh simplifier makes fewer: it collapses the edges that change the shape least (Garland and Heckbert's quadric error) and holds the edges between colours and the open edges, so the model keeps its look.
$ python3 tools/low3d-models.py ART_DIR LIST.json OUT.js
Python's standard library, nothing elseWith WYRD, Sofa Box OS 1.1.82
What backs it
WYRD's props, weapons and creatures come into the game through it, and light, bake and join like meshes built in code.
The first page of our game maker
The maker: poses
deploy/sofa-box/games/maker/
Opens a game's own page, reads the parts the game marks for it, and draws the game's bodies exactly as the game bakes them. Turn a pose joint by joint, mirror it, revert it, play a clip at any rate, line up every body, switch to the picture a Pi 3 draws and watch the draw calls and triangles against a Pi 3's frame. What changes is copied out the way the game writes it; nothing is written back to the page yet.
$ python3 -m http.server -d deploy/sofa-box/games 8770
# then http://127.0.0.1:8770/maker/#wyrd
A browser and a mouse; a checkout, or the box's own browserSofa Box OS 1.1.83, 2026-11-12
What backs it
Built on Rig, which WYRD's bodies moved into without a byte changing: 25 poses of 21 looks at two sizes, 1,050 meshes compared. The tests parse its page with every game's.
The measure on the box itself
Graphics check and games check
deploy/sofa-box/games/probe/
The graphics check names the box's GPU, runs the engine's two-second test, shows the rung a game would pick and draws a scene that way with its live frame rate. The games check plays every game in turn by itself and shows a table: frames a second, late frames, the slowest frame, the work a frame and memory.
http://127.0.0.1:8091/box/games/probe/#games&run
A page in the box's own browserOn every box since 1.1.28; the games check since 1.1.39
What backs it
It is the real measure of a game on a Pi 3, and what it finds goes into the box's Send a report.