# Domains, channels, speed, and where System 22 sits on the era boundary Placed against [n64-python execution-architecture.md](../../n64-python/docs/execution-architecture.md) (its cost model and host assumptions are reused) and the era-boundary proposal (emulator-lineage `docs/proposals/2026-11-era-boundary.md`). The per-component backends, their tiers, the GPU question and the numbers table are in [execution-architecture.md](execution-architecture.md). Tags: MEASURED (a family repository's own measurement, named), OBSERVED (MAME, this repository), DOC, HYPOTHESIS (arithmetic shown). ## Place on the era boundary: inside, full contract **The game owns the machine.** No operating system or BIOS: the 68020 program, the MCU program and the DSP code (Namco's mask ROM plus RAM) drive registers, share RAM, and hand display lists to a renderer each frame. It is a command-list machine in the narrow sense (the 68020 and DSPs build lists for the renderer) but not an API machine: no SDK stands between game and hardware, and the timing of the DSP and MCU handshakes is the hardware's. By the proposal's test it sits inside the line with the PlayStation and the N64, and the full contract applies. Its CPU-side instruction rate (about 29 M a second at peak, below) is in the proposal's first row; **its renderer's pixel rate is the N64's problem** (a texture-mapping rasteriser at 18-55 M pixels a second), and like the N64 it brings the GPU-backend question. ## Domains and channels (proposed; HYPOTHESIS until the handshakes are traced) | Domain | Parts | Clock (MAME, OBSERVED) | | --- | --- | --- | | **Main** | MC68020/EC020, work RAM, `polygonram` (68020 side), text layer, palette, mixer, sprites (Super 22), the renderer's front end | 24.576 MHz | | **DSP** | master and slave C71 (one domain: they talk through ports), point ROM, their RAMs | 40 MHz CLKIN, 10 M machine cycles/s each | | **MCU/sound** | C74 or M37710S4, its ROM, C352, the inputs | 16.384 MHz (φ 8.192 MHz) | | **I/O MCU** (System 22) | the second C74 | 6.144 MHz | | **Renderer back end** (producer) | the pixel work | - | Channels: `polygonram` (68020 and master DSP); the DSP I/O ports (master, slave, renderer); the shared RAM between 68020 and MCU; interrupt lines; the frame swap. **The 68020's map has no window onto the polygon frame buffer** (OBSERVED: neither board's map shows one), so the renderer's output is seen only by the video output at the frame: its join with the CPUs is once a frame, unless the DSPs read a status the renderer drives (U5). Time base: a 49.152 MHz unit holds 24.576 MHz, 16.384 MHz and 6.144 MHz exactly (2, 3 and 8 units a cycle), but MAME's 40 MHz DSP clock does not fit it (contradiction C2: community pages say the DSPs run at 49.152 MHz, which would). ## How much work (arithmetic shown) | Load | Per second | Basis | | --- | --- | --- | | 68020 instructions | 3.6-3.7 M in MAME (89-93 % spins); peak perhaps 8 M | OBSERVED; peak HYPOTHESIS (about 3 clocks per instruction in cache, UM020 9.2's best cases) | | DSP machine cycles, peak | 20 M | 2 x 40 MHz / 4 (DOC: C2X; MAME's clock) | | DSP instructions in MAME | master 0.56 M (Ridge Racer), 1.91 M (Time Crisis); slave 0 | OBSERVED | | MCU instructions | 0.21 M (C74), 0.59 M (M37710S4) | OBSERVED | | **All instructions, peak** | **~29 M** | 8 + 20 + 1 | | Renderer pixels, one full layer | 18.4 M | 640 x 480 x 59.904 | | Renderer pixels with overdraw 2-3 | 37-55 M | HYPOTHESIS | | C352 | 32 voices | Wikipedia/vgmrips claim, HYPOTHESIS | ## The no-JIT verdict per target (details and table in execution-architecture.md) - **CPU side:** about 0.8-1.7 G host cycles a second (DSPs at 20-50 cycles an instruction, the 68020 at 40-80, the MCU at ~40: HYPOTHESIS): 15-34 % of a desktop core, 19-42 % of a phone core, 32-70 % of a phone browser's. Fits one core everywhere **if** DSP time-keeping is table-driven (an SH-2-style scheduler at 145 cycles, MEASURED on sh2-rust-fast, would need 2.9 G for the DSPs alone). - **Renderer, software:** 80-200 host cycles a pixel (HYPOTHESIS) over 37-55 M pixels is 3.0-11 G cycles a second: 0.6-2.2 desktop cores, 0.75-2.75 phone cores, 1.25-4.6 browser workers. Banded across threads if no state crosses pixels (U3). - **So:** `recompile: none` reaches real time on **desktop** (one CPU thread plus 1-3 renderer threads) with good confidence once measured; on a **phone app** at the edge (needs 2-3 renderer threads, or a Metal compute back end); in a **phone browser** only with a WebGPU back end or a named concession. Recompilation would not help: the CPU side already fits; the pixels are the cost, and they want threads or the GPU, not a JIT. - **Python:** a slice-only specification (a frame's DSP jobs, a renderer primitive set) at roughly 1/50 to 1/500 of real time (HYPOTHESIS).