# The polygon pipeline: 68020 display lists, two DSPs, the texture-mapping renderer **No Namco or Evans & Sutherland document, schematic, or hardware capture of System 22's 3D side is in hand.** What follows is OBSERVED in MAME 0.285 (regions, maps, traces, pictures) or HYPOTHESIS built on that. MAME marks 38 of 40 sets "imperfect" and 2 "preliminary"; it is a tier-5 detector here, and for the slave DSP not even that ([cpu-cores.md](cpu-cores.md)). ## The flow, as far as it can be seen 1. **The 68020 writes display lists** into `polygonram` ($70000000 on System 22, $C00000 on Super System 22), which the master DSP also sees (OBSERVED: map; the master's data space $8000-$FFFF is a delegate window, HYPOTHESIS that it is this RAM and the point ROM). 2. **The master DSP transforms**, reading model data from the **point ROM** (`pointrom`, 3-6 MiB: OBSERVED regions). Its code is the C71's mask ROM plus RAM at $4000-$7FFF. 3. **The slave DSP** receives work from the master through I/O ports and emits toward the renderer (HYPOTHESIS from the port maps: master writes ports 0-3, 7-15; slave reads 3-6, 8, 11, 12). In MAME it never runs (U4). 4. **The renderer** draws textured, Gouraud-shaded, depth-cued, optionally translucent polygons (OBSERVED: Ridge Racer's attract pictures at 10 and 30 s show perspective-correct looking textures, shading, a sky and fog toward the horizon; the feature list "texture mapping, Gouraud shading, translucency, depth cueing" is the community's, e.g. Wikipedia citing system16.com, which is itself set aside here). Textures are 16x16 tiles (`textile`) placed by a map (`textilemap`) (HYPOTHESIS from the names and sizes). The depth-cueing tables (`czram`), the video mixer, the palette and the text layer are 68020-visible (OBSERVED: map). 5. **The mixer** combines polygons with the text layer, and on Super System 22 the sprite layer (`vics_*`, `spriteram`); System 22's early sets have three 256-byte gamma PROMs. ## Who made the renderer (contradiction C3) Wikipedia calls it "Namco's in-house TR3"; Giant Bomb and the Batocera wiki (search snippets, not fetched) say Evans & Sutherland's TR3 ("Texture Mapping ..."). No primary source was found either way. It does not change the specification; it changes where to look for documents (an E&S part would point at their simulator literature). ## What this means for the specification - **The DSPs are CPUs**, run as such (`tms320c25-python`), with the game's and Namco's code. - **The renderer has no document**, so its first specification is **functional** (the charter's level for "DSP microcode"-like blocks without evidence): the primitive stream the DSPs emit, taken from traces, drawn by a readable software rasteriser; its timing modelled only where software can see it (the DSP-side "busy" and the frame swap). Its judge is tier 5 (MAME's pictures, themselves imperfect). Every pixel rule (texel addressing, filtering if any, Gouraud interpolation, depth-cue blend, translucency, the depth test) is a numbered unknown until a picture or a trace decides it. - **The cost is pixels.** A full 640 x 480 layer at 59.904 Hz is 18.4 M pixels a second; with overdraw of 2-3 (HYPOTHESIS for racing scenes), 37-55 M textured, shaded, fogged pixels a second. That is where the board's time goes ([execution-architecture.md](execution-architecture.md)). ## Unknowns specific to the pipeline (also in the handoff brief) U1 the primitive format between the DSPs and the renderer; U2 texel addressing, filtering and the `textilemap` format; U3 Gouraud and depth-cue arithmetic (precision, `czram`), translucency and the depth test; U4 the slave DSP's role, and why MAME never runs it; U5 the renderer's timing and what the DSPs or the 68020 wait on; U6 the point ROM's formats.