{
  "api_version": "1.0.0",
  "slug": "ps2-web-recomp-gt4-gow2",
  "url": "https://reversedwithai.com/p/ps2-web-recomp-gt4-gow2",
  "markdown_url": "https://reversedwithai.com/p/ps2-web-recomp-gt4-gow2.md",
  "json_url": "https://reversedwithai.com/p/ps2-web-recomp-gt4-gow2.json",
  "title": "Recompiled PS2 games into the browser at full speed, with Claude in the commits",
  "tagline": "Two of the PS2's heaviest games, statically recompiled into a browser page.",
  "summary": "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.",
  "target": {
    "name": "Gran Turismo 4 and God of War II (PlayStation 2)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "PS2 (R5900) to WebAssembly in Chrome",
  "models": [
    "Claude"
  ],
  "tools": [
    "Emscripten",
    "WebGPU"
  ],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "snuri00",
    "url": "https://github.com/snuri00"
  },
  "sources": {
    "repository": "https://github.com/snuri00/ps2-web-recomp",
    "writeup": "https://news.ycombinator.com/item?id=50052251",
    "discussions": [],
    "all": [
      "https://github.com/snuri00/ps2-web-recomp",
      "https://news.ycombinator.com/item?id=50052251"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/ps2-web-recomp-gt4-gow2.webp",
    "credit": "Image: snuri00 (ps2-web-recomp README)"
  },
  "commit_history": {
    "commits": 275,
    "ai_commits": 35,
    "ai_days": 8,
    "first_ai_commit": "2026-10-14",
    "last_ai_commit": "2026-10-28",
    "credited_models": [
      {
        "name": "Claude Opus 5.5",
        "commits": 29
      },
      {
        "name": "Claude (version not given)",
        "commits": 6
      }
    ]
  },
  "added_at": "2026-10-19T07:56:22.3133+00:00",
  "updated_at": "2026-10-19T07:56:22.3133+00:00",
  "sources_reviewed_at": "2026-10-19T07:56:22.3133+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "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.\n\n## How it works\n\nThe 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.\n\n## What plays\n\nThe 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.\n\nNo 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.\n\nSources:\n- https://github.com/snuri00/ps2-web-recomp\n- https://news.ycombinator.com/item?id=50052251 (not read)",
  "ai_use_excerpts": null
}
