<!-- Canonical page: https://reversedwithai.com/p/ps2-web-recomp-gt4-gow2 -->
Canonical page: https://reversedwithai.com/p/ps2-web-recomp-gt4-gow2

# Recompiled PS2 games into the browser at full speed, with Claude in the commits

> Two of the PS2's heaviest games, statically recompiled into a browser page.

snuri00's PS2 Web Recomp brings Gran Turismo 4 and God of War II into Chrome as WebAssembly with WebGPU graphics at 50 to 60 fps, and every port starts from your own disc image.

## Key facts

- Target: Gran Turismo 4 and God of War II (PlayStation 2)
- Category: Games and mods
- Platform: PS2 (R5900) to WebAssembly in Chrome
- Models: Claude
- Tools: Emscripten, WebGPU
- Outcome: Partial
- License: MIT
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: [snuri00](https://github.com/snuri00)
- Added: 2026-10-19
- Updated: 2026-10-19
- Sources reviewed: 2026-10-19 (editor)

## What was done

snuri00's PS2 Web Recomp statically recompiles PlayStation 2 games into WebAssembly and runs them in a browser page with WebGPU graphics and no emulator for the main code. Its commit history carries Co-Authored-By: Claude trailers, so AI agents helped write it. The README does not mention AI; the AI commit census counts 31 of 251 commits with Claude credit (mostly Claude Opus 5.5), from 14 to 27 October 2026. The first target was deliberately hard, Gran Turismo 4, and God of War II followed through the same scripts with no game-specific code.

## How it works

The recompiler reads the game executable, follows its control flow and emits C++ in 16 KiB units, keeping the Emotion Engine 128-bit registers, branch delay slots and the exact floating point rules of the console. Vector unit programs are compiled ahead of time, and anything a game uploads unseen is translated to a WebAssembly module within milliseconds on the spot. The graphics chip runs as compute shaders with the console's own texture, palette and blending rules, and SPU2 audio, IOP kernel modules and movies are reimplemented, with a software renderer as the reference the GPU output is checked against.

## What plays

The README gives no date. Two games have been brought up so far. God of War II plays from menus through cutscenes into combat and holds 60 fps in heavy combat at console resolution (the PS2's resolution), 48 to 60 at twice that on a laptop integrated GPU. Gran Turismo 4 boots, plays the opening movie, menus and full races, with sound and saves, at a clean 50 fps for the PAL release at twice the resolution in Chrome on an integrated GPU, and a browser-stored memory card exports to PCSX2. A Gran Turismo 3 bring-up is marked experimental, with no claim of full compatibility. The next game usually stops where an unhandled system call or a graphics feature is logged for you to bring upstream.

No game data ships: the port script turns your own disc image into a page on your machine. You need a C++20 toolchain, CMake, Ninja, Python 3 and a disc image of a game you own. scripts/port.sh makes the page and scripts/serve.py serves it. The page needs WebGPU, which on Linux Chrome means two flags. The README says not to publish the generated output.

Sources:
- https://github.com/snuri00/ps2-web-recomp
- https://news.ycombinator.com/item?id=50052251 (not read)

## What the commit history shows

35 of 275 commits in the public repository credit an AI, over 8 days between 2026-10-14 and 2026-10-28. Credited: Claude Opus 5.5 (29), Claude (version not given) (6).

Measured by this site from public git history.

## Questions about Gran Turismo 4 and God of War II (PlayStation 2)

### What is the Gran Turismo 4 and God of War II (PlayStation 2) project?

snuri00's PS2 Web Recomp brings Gran Turismo 4 and God of War II into Chrome as WebAssembly with WebGPU graphics at 50 to 60 fps, and every port starts from your own disc image. It is listed under Games and mods for PS2 (R5900) to WebAssembly in Chrome.

### Which AI model was used on Gran Turismo 4 and God of War II (PlayStation 2)?

The entry names Claude. The tools named alongside are Emscripten and WebGPU.

### Did the AI reverse engineering of Gran Turismo 4 and God of War II (PlayStation 2) work?

Its author reports that it partly works.

### Is the source code for Gran Turismo 4 and God of War II (PlayStation 2) available?

The entry links a repository, https://github.com/snuri00/ps2-web-recomp, but does not record whether the code is public. Licence: MIT.

## Sources

- [Repository](https://github.com/snuri00/ps2-web-recomp)
- [Write-up](https://news.ycombinator.com/item?id=50052251)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: snuri00 (2026). Recompiled PS2 games into the browser at full speed, with Claude in the commits. Reversed with AI. https://reversedwithai.com/p/ps2-web-recomp-gt4-gow2
