The project combines ahead-of-time CPU translation with a custom runtime that recreates enough of the PS2 environment for a title to run.
01 / 03
Static recompilation
The project translates the PS2 Emotion Engine’s machine code into C++ ahead of execution, then compiles that code for WebAssembly.
02 / 03
A supporting runtime
The runtime handles supporting console behavior that was not translated as game CPU code, including graphics and other system interactions.
03 / 03
WebGPU in the browser
Graphics work is connected to WebGPU. You build the game-specific output locally and run it in a browser with compatible WebGPU support.
Which parts are translated, interpreted or rendered?
Static recompilation describes the main CPU path. The supporting parts of the console use different techniques, and those distinctions help explain compatibility and performance differences.
EE: main game CPU
The Emotion Engine executable is translated into C++ ahead of time, then built as WebAssembly for the browser. Headless exploration helps discover additional code entry points that static analysis misses.
IOP: supporting processor
The game's IRX modules run on an R3000 interpreter. The IOP kernel and supporting libraries are reimplemented by the runtime, so a missing IOP function can stop a game even when its main executable was translated.
VU: vector programs
Programs recorded during exploration can be compiled ahead of time into SIMD C++. A vector program first encountered in the browser is translated into WebAssembly at runtime. Exploration coverage is therefore relevant when comparing performance reports.
GS: graphics
The graphics runtime uses WebGPU compute shaders to reproduce Graphics Synthesizer behavior. A browser exposing WebGPU is only a prerequisite; it does not establish that every effect used by a game is implemented correctly.
This project takes your own disc image through port.sh, explores the game and builds browser output with Emscripten. It also has a native runner. This guide's commands and compatibility records refer to this repository.
A separate experimental ELF-to-C++ recompiler and runtime. Its documented workflow uses analysis or Ghidra-exported function maps, a TOML configuration, and linking generated output with ps2xRuntime. Its commands and reports are not interchangeable with this guide's browser workflow.
Comparison reviewed 2026-10-19 against the linked documentation snapshots. This is a workflow comparison, not an independent execution or compatibility test of either project.
Three files and folders with different jobs
Keep the source download, your game data, and the output of the build separate when following the tutorial.
Project source
The Git clone or GitHub ZIP provides the recompiler, runtime and build scripts. Start here to obtain the tools; it does not include a game.
Your disc image
Your own game's ISO is the input to port.sh. The script reads the boot executable, generates translated code, and runs exploratory passes to discover more entry points.
Generated web build
The resulting build/web-mygame directory contains the browser output. Start serve.py with that directory and the matching disc image; open the localhost address it prints.
Why one successful game does not prove another works
Games exercise different system calls, IOP libraries, vector programs and graphics behavior. The author's God of War II work exposed gaps that Gran Turismo 4 had not reached. A successful compile can still stop before gameplay.
Check the record for your game first. If it is not listed, its status on this guide is unverified. Keep the build log and the furthest stage reached when reporting a problem.