SimulationGPU cloth
Flags, banners, tarps, curtains and nets in one compute pass and one draw.
Thousands of oscillators that pull each other into step, simulated in compute and drawn from the same buffers.
Measured 14 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged GPU 0.57–1.48, CPU 0.12–0.13 ms). What ran: Measured on the power grid: 4,096 nodes, 32 steps a frame of the swing equation, the lines and the order parameter in compute, the map and the wheel inset drawn from the same buffers, timed by timestamp queries. A nuclear unit trips a second in, so the frames show a swing, governors and secondary control. Phones: tiers are being measured next.
| Machine | GPU ms | CPU ms | CPU p95 |
|---|---|---|---|
| RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring tool | 0.94 | 0.12 | 0.17 |
| apple · Apple A19 Proin a browser tab · 16 November 2026 | 6.63 | 0.22 | 0.28 |
| Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 2026 | 2.36 | 0.25 | 0.39 |
Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.
From HaTac. Fully custom code.
Yoshiki Kuramoto, Self-entrainment of a population of coupled non-linear oscillators (1975): The model and its order parameter r e^{iψ}; the all-to-all coupling as one sum of the mean field.
G. Filatrella, A. H. Nielsen & N. F. Pedersen, Analysis of a power grid using a Kuramoto-like model (Eur. Phys. J. B, 2008): The swing equation read as second-order Kuramoto oscillators.
James Pantaleone, Synchronization of metronomes (American Journal of Physics, 2002): Metronomes pulled into step through the board they stand on; the demo’s boards are a hub-coupled analogue.
John Buck, Synchronous rhythmic flashing of fireflies (Quarterly Review of Biology, 1988): The fireflies preset.
Mark Jarzynski & Marc Olano, Hash Functions for GPU Rendering (JCGT, 2020): The PCG hash, bit for bit the same in WGSL and TypeScript, under the builders, the noise and the wheel’s jitter.
Magnus Hestenes & Eduard Stiefel, Methods of conjugate gradients (1952): The preconditioned solve inside the steady-state Newton step.