aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / docs / design / boot / receipts / frame-times.md
| 1 | # Frame time per stage |
| 2 | |
| 3 | Two different things were timed. Neither is the iMac. |
| 4 | |
| 5 | ## 1. The sketch (`night.html`), in a browser with no graphics card |
| 6 | |
| 7 | OBSERVED, 2026-10-20, on the Spark. Command (run through `quiet-build`): |
| 8 | |
| 9 | ```sh |
| 10 | node docs/design/tools/shoot.mjs "file://$PWD/docs/design/boot/night.html?measure=1&w=1920&h=1080" \ |
| 11 | --size 1920x1080 --wait "window.__night_done" --timeout-ms 240000 \ |
| 12 | --result "JSON.stringify(window.__night_result)" > frame-times-1920x1080.json # exit 0 |
| 13 | ``` |
| 14 | |
| 15 | and the same at 1280x720 (exit 0). Raw results: `frame-times-1920x1080.json`, `frame-times-1280x720.json`. |
| 16 | |
| 17 | The browser drew with SwiftShader, a CPU stand-in for a graphics card (the renderer string is in the JSON). |
| 18 | Headless Chrome on this machine gave no real GPU path. The machine was busy: load average 54.6 on 20 cores |
| 19 | at the end of the run. Each frame is timed from the start of drawing to a one-pixel read-back, which forces |
| 20 | the frame to finish. |
| 21 | |
| 22 | | stage (ms of the night) | 1920x1080 mean / p95 / max frame (ms) | 1280x720 mean / p95 / max frame (ms) | |
| 23 | | --- | --- | --- | |
| 24 | | dark (0 to 2600) | 441 / 668 / 668 (n 4) | 104 / 262 / 262 (n 18) | |
| 25 | | holes (2600 to 6000) | 275 / 444 / 444 (n 12) | 74 / 114 / 141 (n 44) | |
| 26 | | spiral (6000 to 12000) | 217 / 297 / 369 (n 27) | 93 / 145 / 192 (n 61) | |
| 27 | | merger (12000 to 15200) | 309 / 486 / 486 (n 12) | 88 / 149 / 163 (n 39) | |
| 28 | | settled (after 15200) | 402 / 518 / 518 (n 3) | 104 / 136 / 136 (n 13) | |
| 29 | |
| 30 | One-time bakes before the first frame, 1920x1080: clouds 114 ms, scale-up 31.6, stars 16.9, galaxies 54.3, |
| 31 | appear map 8.5. At 1280x720: 98.7, 33.4, 6.5, 38.0, 9.9. |
| 32 | |
| 33 | What this means: on a CPU-only renderer the sketch runs at a few frames a second at 1080p, so it is a |
| 34 | picture-accurate reference, not a smoothness reference. INFERRED: on any real graphics card the shader is a |
| 35 | single full-screen pass and should hold the display rate, but that is NOT MEASURED here. |
| 36 | |
| 37 | ## 2. The kernel's own night (`native/kernel/ui`), on one CPU core |
| 38 | |
| 39 | OBSERVED, 2026-10-20: the kernel UI host test, built with `cc` from L266's sources |
| 40 | (`feat/allen-boot-everywhere@a8c4eaf`), printed: |
| 41 | |
| 42 | ``` |
| 43 | ALLEN_UI_TEST: PASS (61 checks) |
| 44 | 3768 frames at 3840x2160 on one core: average 12392 us, slowest 83234 us |
| 45 | ``` |
| 46 | |
| 47 | That is the shipping drawing code, 4K, software only, on one Spark core: about 12.4 ms a frame on average, |
| 48 | inside a 60 Hz budget (16.7 ms) on average, with a slowest frame of 83 ms. The iMac's own number is UNKNOWN |
| 49 | until L266 times it on the device. |