TechniquesNewConstruction kit: buildings from a grid, pieces that fit their neighbours (engine-free)
The HaTac engine’s construction kit, lifted whole and engine-free.

The HaTac engine’s video screens and its screen recipe kind, lifted out whole on raw WebGPU with no engine.
The HaTac engine’s video screens and its screen recipe kind, lifted out whole on raw WebGPU with no engine: a screen is a small JSON recipe (the recording’s size, cadence and frame count, the glass’s width and curve, bezel, case and finish, chapters with a still each, captions, recorded clicks). The show clock owns the displayed frame: a preroll seeks to the middle of the wanted frame and resolves only when the decoded picture’s own timestamp matches, a hold keeps its picture, a scrub with no cached picture shows the chapter’s still, and the first frames are kept across the native loop so the wrap never flashes. Decoders are a budget with priorities (two by default, a revoked screen unloads its element and closes its pictures), and a waiting screen shows its chapter still. Frames are imported as external textures each draw (a copy path for stills and other devices), linearised once, lit to a white level that follows the room (full by day, 60% in the dark), finished with a view-dependent glass reflection capped over black, and the visible glass feeds bloom only above its own threshold. Captions go into a page element of yours, click rings land on the recorded clicks, and pick() turns a surface hit into the source pixel on the drawn chords. Added in the library: a standalone stage and host (group 0, a flat material set, HDR with bloom and the present), hit() for a pointer ray, reshape() for a live curve, and a screen light that lights any surface in the room from what each screen shows. The demo is a gallery corner with a walkthrough of a made-up app and two loops.
Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged GPU 2.11–2.81, CPU 0.28–0.29 ms). What ran: The walkthrough screen alone: one curved panel (48 segments) drawing the decoded 1280 × 720 VP9 recording through an external texture each frame, square-on and filling most of the stage, with its glass threshold and the host’s bloom and present. The show clock plays from the start. Phones: tiers are being measured next.
Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.
install("world-screens")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it upFrom HaTac. Adapted from published work, named below.
Hannes Andersson: The HaTac engine’s video screens, screen recipes and their tests (built for his game and proven there); the library’s stage, host, screen light and demo.
Jorge Jimenez, Next-generation post-processing in Call of Duty: Advanced Warfare (SIGGRAPH 2014): The host’s bloom: the 13-tap downsample with a Karis average and the tent upsample, as the engine’s bloom has them.
Krzysztof Narkowicz, ACES filmic tone mapping curve (2015): The present’s tone map, the engine’s default.
WebGPU and WebCodecs (W3C): importExternalTexture over a VideoFrame, which the screen draws from, and requestVideoFrameCallback for the presented frame.