RETRO P2P · INPUTS TRAVEL — PIXELS DON'T
PeerJS broker
signalling only, then out of the path
Host — a browser
runs its own FBNeo core (WASM)
session · lockstep · Transport seam
Guest — a browser
runs the same core — not a spectator
session · lockstep · Transport seam
inputs — ~60/s each way, 12 frames of history in every packet
on a join: savestate to everyone, romset to whoever has none
voice — one call per pair, never in the frame path
rooms hold 2–3 players — every pair connects directly, full mesh
Deterministic lockstep
frame N is simulated only after every player's input for frame N has arrived — every machine computes an identical game, for ~1.8 KB/s per peer
join or leave → pause, hand everyone the host's savestate, restart together at the same frame
The Transport interface is the seam: nothing above it knows PeerJS exists, so the broker and transport layer are a one-file swap.