How z3xox/tenkaichi3decomp works
Tenkaichi3Decomp is a native PC port of Dragon Ball Z: Budokai Tenkaichi 3, not an emulator. The player-facing flow runs from game startup through menus and setup of a match into the battle, with saving and audiovisual output alongside it. The port supplies platform services and a renderer beneath the game code; optional online play adds matchmaking and direct peer traffic, with a relay when needed. The graph combines the README’s documented capabilities with the sampled startup, menu, battle, and rendering code; several subsystems are represented at directory level because their implementations were not sampled.
Main entry points: menu Menus · battle Battle simulation · main.c Game startup · gs_input.c Input
Components 17
Game runtime
- Game startup
src/main.c - Menus
src/menu - Battle simulation
src/battle - Save system
src/sys/save.c
PC platform
- Renderer
port/src/gs/gs_draw.c - GPU backends
port/src/gs - Input
port/src/gs/gs_input.c - Audio
port/src/gs/snd_adx.c - Platform services
port/src - Settings window
port/src/gs/ui.cpp
Online play
- Netplay
port/src/gs/net.c - Matchmaking
port/matchmaking/worker.js - TURN relay
Disc setup
- Setup application
port/setup/setup.cpp - Installation
install.py
Other components
- Player
- Game disc image
Connections 18
- Player → Game startup: starts game
- Game startup → Menus: loads overlay
src/main.c - Menus → Battle simulation: starts fight
- Menus → Save system: saves progress
- Player → Input: provides controls
- Input → Menus: controls menus
- Input → Battle simulation: provides controls
- Battle simulation → Renderer: sends graphics
- Renderer → GPU backends: replays draws
port/src/gs/gs_draw.c - Battle simulation → Audio: uses sound
- Game startup → Platform services: initializes services
src/main.c - Player → Settings window: opens settings
- Player → Setup application: chooses disc
- Setup application → Installation: runs installer
port/setup/setup.cpp - Installation → Game disc image: reads data
- Player → Netplay: joins match
- Netplay → Matchmaking: exchanges room data
- Netplay → TURN relay: relays packets