# Proposal: the era boundary, where the family's contract changes Status: **direction agreed by Aubrey, 2026-11-26** (charter text not yet drafted): "the game owns the machine actually is the line for our older cores. That is not how newer systems work, so we'd need to adjust ... Yes, we should write more phase 0 maps." Refinement agreed in discussion: **the Dreamcast is the last machine under the current methodology** (its games are mostly bare-metal; its Windows CE titles fall under the changed contract), and **the PSP is the first machine of the adjusted one**: kernel-hosted and encrypted, so past the line by contract, but at speeds the current tiers reach on desktop, which makes it the pilot for developing the changed contract without also fighting the speed wall. Earlier text follows. Written after the 2026-11-25/26 Phase 0 batches (about 60 systems), whose "Domains and speed" sections give the numbers below; each figure is an estimate unless a repository measured it. ## The question Aubrey, 2026-11-26: "we are quickly running into a great filter. Maybe after the Saturn? I feel there must be a reason retroarch stops where it does. The contracts between old systems and new ones must break things. Even still, I feel there is value getting the Phase 0 documentations for these." And: "we will have to change the contract, and I think this is ok. What I would think is maybe we can go farther than others because we have control of the whole stack. But I don't know." ## Two walls, arriving together **1. The speed wall.** An exact interpreter costs roughly 25-60 host cycles per guest instruction. The SH-2 pilot measured where they go (sh2-rust-fast, 2026-11-26): about 145 cycles per instruction, of which about 90 keep time (the stage scheduler and per-step checks) and about 5 decode (n64-python docs/execution-architecture.md). The budget is the host clock divided by the guest's instruction rate: | Machines | Guest need (instructions/s) | Budget, desktop / phone app / phone browser (host cycles per instruction) | Without recompilation | | --- | --- | --- | --- | | era 1-2, 32X, PSX | under ~50 M | 100+ / 80+ / 50+ | real time everywhere; the 32X measured 57.7-71.5 fps on one desktop P-core (sega32x-rust-fast 45fb435) | | Saturn, N64, 3DO, Model 2 | 50-100 M | 50-100 / 40-80 / 25-50 | desktop yes; phones at the edge; browser needs the cheapest time-keeping | | Dreamcast, Model 3, 3DS, PSP | 150-200 M | 25-33 / 20-27 / 12-16 | desktop for typical software only; phones and browser no | | GameCube, Wii, PS2, original Xbox | 300-730 M | 7-17 / 5-13 / 3-8 | no target | **2. The contract wall.** Up to about the PSX and N64 *the game owns the machine*: it writes registers, counts cycles, races the beam, and the hardware is the contract. The only faithful model is a timed one, which is what the family's method builds. From about the Dreamcast and PSP on, games increasingly run on an operating system and SDK (Windows CE on Dreamcast, the PSP and 3DS kernels, IOS on the Wii, NT on the Xbox), draw through command lists rather than racing the beam, and ship encrypted. *The contract becomes the API.* Exact bus timing matters much less to whether a game works; the OS's behaviour matters more. That is why emulators of those machines model the OS at a high level, recompile the CPU and translate the GPU: they are a different kind of emulator, and RetroArch's cores for them are too. **The test that places a machine:** does a typical game depend on the hardware's timing, or on an OS's behaviour? The Dreamcast is the borderline case (most games bare-metal, the Windows CE ones not). ## What a board past the boundary would promise (the changed contract) - **The Python specification** stays the readable definition, judged by hardware-run test programs (pspautotests, ps2autotests, abaire's Xbox tests, nemu64-test) and by short slices that start from states the Rust tier hands it (late-era method proposal, L1-L4). It never boots a game as a gate case. - **The OS is modelled functionally** (HLE at the system-call boundary) and judged by those test programs; its timing is never called evidence. Firmware, keys and encrypted titles are never shipped; the player supplies what is theirs. - **Play is a turbo-tier promise, desktop first:** block caching, recompilation where the target allows it, GPU backends proven per pixel against the software judge, threads per domain, and named concessions where nothing else reaches. The capability record says plainly which targets are below real time (already proposed in the PS2, Wii, GameCube, Xbox and 3DS briefs). - **The Phase 0 documents are kept for every machine**, inside or outside the boundary: they record what evidence exists, which sources are licence- and respect-clean, and where the speed wall falls, so the decision to stop (or not) is on the record. ## Does controlling the whole stack let us go further? (Aubrey's hypothesis) Honestly: some of it can be argued, none of it is proven yet, and it can be measured. **What our stack gives that peers mostly lack:** 1. **Declared domains and sync points** in every specification. A recompiler that knows exactly where another domain can observe the machine can run freely between those points, and can prove it (lockstep at block exits). Most emulators discover their sync points by bug reports. 2. **Timing as data.** If the specification states timing as tables (decided for the SH-2 handler subset, proposed for the VR4300, R3000A, R5900), a block's timing can be computed once and reused, instead of simulated per stage. On the SH-2 that targets the 90 of 145 cycles that are time-keeping, the largest lever found. 3. **A second implementation to prove every shortcut against.** Every fast path is gated bit-for-bit against the plain tier, so aggressive optimisations can be kept that others would not dare ship. 4. **State transplant between tiers** (proposed): the slow, readable model can judge any moment the fast one reaches. 5. **The OS model is ours.** An HLE we write from the specification, judged by hardware tests, can be exact where it matters and documented where it is not. 6. **Concessions are named and switchable,** so a phone can trade exactness for speed knowingly, and the desktop keeps the exact path. **What it cannot change:** a machine that executes 500 M instructions a second still needs a host to do the equivalent work. Below about 10 host cycles per guest instruction, nothing but recompilation (or hardware virtualisation) gets there, whoever writes it. Encryption and keys stay where they are. **The experiment that would answer it** (all on boards the family already has): 1. **sh2-rust-turbo, memoised block timing** on the 32X: measure host cycles per guest instruction exactly (bus streams identical). If it falls from about 145 toward 20-30, the speed wall moves one row down the table above, and the Saturn and N64 come within reach of phones without recompilation. 2. **The same with recompilation** to native and to WebAssembly, behind the same gate: if exact recompiled blocks reach under 10 cycles per instruction, the GameCube/PS2 row becomes desktop-playable *exactly*, which peers generally do not attempt. 3. Decide the boundary from those measurements, not from instinct, and record them in this proposal. ## Decisions for Aubrey 1. **Adopt "the game owns the machine" as the line** where the family's full contract (exact, cycle-level, Python-gated) applies; boards past it take the changed contract above. 2. **Where the line sits today:** through the Saturn, PSX and N64, with the Dreamcast as a board-by-board judgement (bare-metal titles inside, Windows CE titles under the changed contract). 3. **Keep writing Phase 0s past the line** as maps; build boards past it only when chosen. 4. **Run the experiment** (sh2-rust-turbo first), and move the line if the measurements say so. 5. **Capabilities:** add hardware virtualisation beside `recompile: native | wasm | none` (raised by the Xbox Phase 0), as a capability a host may allow. 6. When accepted, the charter's era table gains the boundary and a pointer here; drafted text on request.