Skip to content

Developer‐Guide

NotY215 edited this page Nov 30, 2026 · 1 revision

PPSX33 Developer Guide

Introduction

PPSX33 is an open-source C++ project.

Contributors can work on the recompiler, runtime, graphics subsystem, HLE services, build pipeline and testing infrastructure.

Technology Stack

Component Technology
Main language C++
Desktop GUI Qt 6 Widgets
Build system CMake
Compiler MSVC
Graphics Vulkan 1.1 / OpenGL 4.5
Runtime Windows x64 DLL

Repository Structure

PPSX33/
├── .github/
├── assets/
├── cmake/
├── docs/
│   ├── games/
│   └── legal/
├── scripts/
├── src/
│   ├── core/
│   ├── processor/
│   │   ├── PPU/
│   │   └── SPU/
│   ├── RSX/
│   ├── games-stuff/
│   ├── UI/
│   └── cli/
├── tests/
├── CMakeLists.txt
├── CMakePresets.json
├── ENGINEERING.md
├── ROADMAP.md
├── STRUCTURE.md
└── README.md

See STRUCTURE.md for the complete source layout.

Development Environment

Install:

  • Visual Studio with C++ desktop development tools.
  • Windows SDK.
  • Qt 6 SDK matching the project configuration.
  • CMake.
  • Ninja where required.

Qt Configuration

Example Qt installation:

aqt install-qt windows desktop 6.8.0 win64_msvc2022_64 -O C:\Qt

Add the Qt binary directory to the system PATH:

C:\Qt\6.8.0\msvc2022_64\bin

Verify:

qmake --version

CMake can discover Qt through PATH or CMAKE_PREFIX_PATH.

Building

From a Visual Studio developer command prompt:

scripts\build_all.bat

Or use the project's CMake configuration directly.

cmake -S . -B build -DCMAKE_PREFIX_PATH=C:/Qt/6.8.0/msvc2022_64
cmake --build build --config Release

The exact configuration depends on the selected build preset and current project targets.

Testing

Run the synthetic smoke test after relevant changes.

Windows:

scripts\run_smoke_test.bat

Compatible shell environments:

bash scripts/run_smoke_test.sh

The smoke test validates a synthetic PPC64 input pipeline.

It does not establish commercial-game compatibility.

Implementing PPU Instructions

  1. Locate the instruction decoder and emission path.
  2. Inspect operand fields.
  3. Verify architectural effects.
  4. Implement the corresponding runtime behaviour.
  5. Add a focused regression test.
  6. Run the smoke test.
  7. Review generated output.
  8. Update documentation.

Do not silently replace unsupported instructions with no-op behaviour and report them as fully implemented.

Graphics Development

Important areas:

src/RSX/
src/RSX/sw/

Priorities include:

  • FIFO decoding
  • RSX methods
  • Vertex processing
  • Textures
  • Shader compilation
  • Render targets
  • Vulkan presentation

Use real reproducible test scenes when validating rendering.

Runtime Development

Important areas:

src/core/
src/processor/PPU/
src/processor/SPU/
src/games-stuff/

Runtime changes must preserve guest state and expected system-service behaviour.

Pull Request Checklist

  • Clear implementation scope.
  • Related interfaces updated.
  • Build tested.
  • Relevant regression tests executed.
  • Documentation updated.
  • No unauthorized game data included.
  • Unverified behaviour clearly identified.

Project Guidelines

  • Follow the existing code structure.
  • Avoid unnecessary duplication.
  • Preserve the unified runtime architecture.
  • Keep unsupported behaviour visible.
  • Do not claim compatibility without evidence.
  • Keep documentation synchronized with actual implementation.

Contributing

Read CONTRIBUTING.md before submitting changes.

Repository:

https://github.com/NotY215/PPSX33

Clone this wiki locally