Skip to content

Architecture

NotY215 edited this page Nov 30, 2026 · 1 revision

PPSX33 Architecture

System Overview

PPSX33 consists of three major parts:

  1. Desktop and command-line host tools.
  2. Recompiler core.
  3. Unified guest runtime.

Architecture Diagram

flowchart TB
    subgraph HOST["Host Application"]
        GUI["Qt 6 GUI"]
        CLI["CLI"]
    end

    subgraph CORE["Recompiler Core"]
        ELF["ELF Loader"]
        ANALYSIS["ELF Analysis"]
        PPU["PPU Lifter"]
        PROJECT["Project Generator"]
    end

    subgraph OUTPUT["Generated Project"]
        EXE["Game EXE"]
        IMAGE["guest_image.bin"]
    end

    subgraph RUNTIME["ps3rt.dll"]
        LV2["LV2 HLE"]
        PRX["PRX / NID"]
        SPU["SPU / MFC"]
        RSX["RSX / GCM"]
        AUDIO["Audio"]
        INPUT["Controller"]
        FS["Filesystem"]
    end

    GUI --> CORE
    CLI --> CORE
    ELF --> ANALYSIS
    ANALYSIS --> PPU
    PPU --> PROJECT
    PROJECT --> EXE
    PROJECT --> IMAGE
    EXE --> RUNTIME
    RUNTIME --> LV2
    RUNTIME --> PRX
    RUNTIME --> SPU
    RUNTIME --> RSX
    RUNTIME --> AUDIO
    RUNTIME --> INPUT
    RUNTIME --> FS
Loading

Core Components

Host GUI

The desktop interface is implemented using C++ and Qt 6 Widgets.

It coordinates the project workflow and provides access to reports and configuration.

ps3core.dll

The native recompiler core provides ELF loading, analysis, lifting and project-generation functionality.

ps3rt.dll

The unified runtime provides the services required by generated game executables.

Processor Architecture

PPU

The main PowerPC processor.

PPSX33 translates supported PPU instructions into native code.

SPU

The Synergistic Processing Unit execution path.

The implementation includes an SPU interpreter and related MFC/DMA functionality.

Full instruction and scheduling coverage remains incomplete.

Kernel and System Libraries

The runtime implements partial LV2 and PRX/NID services.

These services provide the interfaces that translated game code expects from the original system.

Graphics Architecture

flowchart LR
    PPU[Guest PPU] --> GCM[GCM Commands]
    GCM --> FIFO[FIFO Processing]
    FIFO --> RSX[RSX Processing]
    RSX --> SURFACE[Guest Color Surface]
    SURFACE --> VK[Vulkan 1.1]
    SURFACE --> GL[OpenGL 4.5]
    VK --> DISPLAY[Windows Display]
    GL --> DISPLAY
Loading

Runtime Invariants

  • Diagnostic draws do not prove game rendering compatibility.
  • A visible window does not prove the title is executing correctly.
  • Translated instruction counts do not prove semantic correctness.
  • Runtime recovery must be distinguished from normal guest control flow.

Main Source Directories

src/
├── core/
├── processor/
│   ├── PPU/
│   └── SPU/
├── RSX/
├── games-stuff/
├── UI/
└── cli/

See the repository STRUCTURE.md for the detailed source tree.

Clone this wiki locally