# boardroom ideas A gathering place for ideas, not a design. Items move to a design doc once they are decided. ## Why own the frontend at all RetroArch is mostly a frontend over cores written by unrelated teams. The libretro API is deliberately thin, so anything that depends on core internals is only as good as each core. We own every core and board, so we can promise things RetroArch can't: 1. **Fix once, fixed everywhere.** Boards pin shared chip cores; a core fix (e.g. Z80 EX (SP),rr, EI) reaches every machine. emulator-lineage already shows which boards lag. 2. **Determinism as a contract.** Every board is deterministic and fully serializable, so save states, rewind, run-ahead, rollback netplay and input movies work on *every* machine, not core-by-core. 3. **One verification story.** Ladder rungs, lockstep gates, oracle comparisons, recorded game replays and seeded faults are the same shape across systems. The frontend can surface them (e.g. "this replay still matches the reference board"). 4. **Python reference, Rust fast.** The frontend could run a Rust board and lockstep it against the Python board on demand. 5. **One debugger for every CPU.** Bus-cycle traces, memory/register views, breakpoints, RAM watch, cheats, achievements, uniform across Z80, 68000, 6502, SM83, ARM7, ... 6. **Composed boards.** Sega CD / 32X via expansion sockets, Super Game Boy (SNES + GB board), GB on GBA, SMS mode on Mega Drive. These are hard to do across separate libretro cores. 7. **Exact clocks.** Every board runs from a master clock, so the frontend knows the true refresh and audio rates: clean pacing and sync, no guessing. 8. **Native and web from one core.** The Rust boards already run in wasm (play-md, galaxian, emu, neongalaga) and natively (md-play). 9. **One licence.** libretro cores mix GPL with non-commercial licences (snes9x, Genesis Plus GX). Owning everything means we pick. 10. **Documented limits.** Each core's `docs/claims.md` can be shown to users, so they know what to trust. ## What not to rebuild RetroArch's frontend breadth (shaders, menus, 20+ platforms, controller databases, playlists) is a huge amount of work that adds no accuracy. Prune what doesn't pay. - Build our own frontend only for what ownership enables: determinism, replays/netplay, the shared debugger, composed boards, web, verification. - **Also export the Rust boards as libretro cores**, so RetroArch's breadth comes for free while the guarantees stay inside the cores. - Python boards stay reference and oracle; they need not run in real time. ## Existing pieces to learn from - **md-play** (megadrive-rust): SDL2 window, controller layouts (SNES label hint, `--layout snes`, 6-button from header). - **play-md**: browser frontend; 7z loading, soft-clamped +12 dB sound, phone touch pad, included games, empty-WAV loop lesson. - **Galaga sites / z80-wasm**: gamepad/touch, `?keys=1` flight recorder with exact native replay, focus-stealing-button lesson. - **galaga-remix**: mod format and the hardware rule for ROM hacks. ## Open questions - Rust only, or a Python host for the reference boards too? - What is the common board interface? (clock step, input, video/audio out, serialize, debug hooks, sockets for add-ons.) Does it start from what md-play and play-md already need? - Native windowing stack: SDL2 (as md-play) or something else? - Web and native as one frontend, or two thin shells over one board API? - libretro export: which board first, and does it come before or after our own frontend? - Netplay: rollback from day one, or after save states and replays? - How does a ROM get to a board? (rom-farmer / Retool DATs for 1G1R, header detection, BYO BIOS for GBA and others.)