How viny182/daytona-arcade-recomp works
Daytona USA is a static-recompilation-based native Model 2 game, presented through desktop and console/mobile frontends. The principal flow is player launch and ROM selection, ROM import, then frame-by-frame execution of generated game code against the native board, with video and audio delivered by the frontend. The README also documents cross-platform ports, GPU rendering with optional texture packs, and experimental network link play. Edges reflect explicit README statements or SOURCE INDEX references; unsampled implementation details are represented only where documented.
Components 24
Frontend and Ports
- Launcher
src/app/launcher.cpp - Desktop App
src/app/main.cpp - Vita Frontend
platform/vita/main.cpp - Dreamcast Frontend
platform/dreamcast/game/main.cpp
Native Board Runtime
- ROM Import
src/runtime/rom_import.cpp - ROM Source
src/runtime/rom_source.h - Game Loop
src/runtime/game_loop.h - Model 2 Board
src/runtime/m2_board.h - i960 Runtime
src/runtime/cpu.h - TGP Runtime
src/runtime/tgp.h - Lockstep
src/runtime/lockstep.h - Replay Bus
src/runtime/m2_replay_bus.h
Recompilation
- i960 Recompiler
tools/m2recomp/main.cpp - i960 Decoder
src/i960/decode.cpp
Video and Audio
- Video Pipeline
src/runtime/video.h - Geometry Engine
src/runtime/geo.cpp - Rasterizer
src/runtime/raster.h - GPU Renderer
src/app/gpu/gpu_renderer.cpp - Texture Packs
src/app/gpu/texpack.cpp - Sound Board
src/runtime/sound_board.h - Native Sound
src/runtime/native_sound_engine.cpp
Link Play
- TCP Link
src/app/link_socket.h
Other components
- Player
- Other Cabinet
Connections 25
- Player → Launcher: chooses game
- Launcher → Desktop App: configures launch
- Desktop App → ROM Import: imports ROM
src/app/main.cpp - ROM Import → ROM Source: opens images
- Desktop App → Game Loop: runs frames
src/app/main.cpp - Game Loop → Model 2 Board: advances board
src/runtime/game_loop.h - Game Loop → Lockstep: coordinates execution
src/runtime/game_loop.h - Model 2 Board → i960 Runtime: hosts CPU
- Model 2 Board → TGP Runtime: hosts TGP
- Model 2 Board → Video Pipeline: updates video
- Video Pipeline → Geometry Engine: uses geometry
- Video Pipeline → Rasterizer: rasterizes
- Desktop App → GPU Renderer: presents frames
src/app/main.cpp - GPU Renderer → Video Pipeline: uploads composed frame
- GPU Renderer → Texture Packs: loads replacements
- Game Loop → Sound Board: runs sound
src/runtime/game_loop.h - Desktop App → Native Sound: selects audio backend
src/app/main.cpp - Native Sound → Sound Board: receives sound packets
- i960 Recompiler → i960 Decoder: decodes instructions
tools/m2recomp/main.cpp - i960 Recompiler → i960 Runtime: generates runtime code
- Lockstep → Replay Bus: checks replay events
src/runtime/lockstep.h - Desktop App → TCP Link: creates link
src/app/main.cpp - TCP Link → Other Cabinet: sends cabinet data
- Vita Frontend → Game Loop: runs shared game
platform/vita/main.cpp - Dreamcast Frontend → Game Loop: runs shared game
platform/dreamcast/game/main.cpp