AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

A GitHub project called ps2-web-recomp translates PlayStation 2 game code ahead of time into C++ and WebAssembly, then recreates the console systems needed to run it in a browser. Its developer reports Gran Turismo 4 and God of War II running in Chrome, but users must supply their own disc images and results depend on hardware and game.

A developer has published ps2-web-recomp, a project that converts PlayStation 2 game code into WebAssembly so selected titles can run in a browser without a conventional emulator. The project’s GitHub report demonstrates Gran Turismo 4 and God of War II running in Chrome, with users required to provide their own game disc images.

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

The project translates a game’s Emotion Engine machine code ahead of time into C++, then compiles that output to WebAssembly. Browser-side code reimplements parts of the PS2 operating system and hardware; graphics are rendered through WebGPU. The developer describes it as a sibling to psp-web-recomp, which applies a similar approach to PlayStation Portable games.

According to the project report, Gran Turismo 4 runs from startup through its opening movie, menus and races, including music and sound effects. In the recorded test, the PAL release reached 50 frames per second in Chrome on a laptop with integrated graphics, at twice the PS2’s resolution. The project also says saves are stored in a memory card held in the browser.

God of War II was brought up using the same scripts, without game-specific code, the report says. It runs from menus through cutscenes into combat, reaching 60 frames per second in heavy combat at the PS2’s native resolution in Chrome. At twice that resolution, the reported rate was 48 to 60 frames per second, with the laptop’s integrated GPU limiting performance. These are developer-reported results, not independent tests.

At a glance
announcementWhen: Reported in a Show HN post; the source…
The developmentA developer introduced a project that statically recompiles PS2 games for browser play, demonstrating Gran Turismo 4 and God of War II running through WebAssembly and WebGPU.
Top Steam deals right now
Halo: The Master Chief Collection-75%$9.99
Red Dead Redemption 2-75%$14.99
Grand Theft Auto V Enhanced-56%$19.79
ARC Raiders-50%$19.99
Core Keeper-40%$11.99
Risk of Rain 2: Alloyed Collective-35%$9.74
Palworld-30%$20.99
Permafrost-20%$19.99
Live · Steam store (current discounts)

Browser Play Without a Conventional Emulator

The project offers a different route to running older console software: instead of interpreting the PS2’s instructions each time, it translates executable code ahead of time and supplies browser implementations of the systems that code expects. That can make browser access possible without asking users to install a full desktop emulator, although the project still has substantial technical requirements and is not a universal way to play PS2 titles.

Its performance claims also show how much the result depends on moving work to the GPU and compiling demanding vector-unit programs. The developer says an early Gran Turismo 4 race ran at 3 frames per second at native resolution with a software renderer and interpreted vector code. After adding GPU rendering and compiled vector programs, it reached about 70 frames per second natively in the developer’s testing. Browser hardware, resolution and game behavior can all affect results.

Products Worth Considering

Samsung 49-Inch Odyssey G9 Curved DQHD Gaming Monitor, 144Hz, 1000R, DisplayHDR 600, FreeSync Premium Pro

Samsung 49-Inch Odyssey G9 Curved DQHD Gaming Monitor, 144Hz, 1000R, DisplayHDR 600, FreeSync Premium Pro

As an affiliate, we earn on qualifying purchases.

How the Recompilation Works

The repository says its tool, eerecomp, analyzes the game executable, follows its control flow and emits C++ in units of 16 KiB of guest code. The output accounts for PS2-specific behavior, including 128-bit registers, branch delay slots and the console’s unusual floating-point rules. The project also recreates kernel services such as threads, semaphores and interrupt handling, while the game’s I/O processor modules run on an interpreter.

Graphics are handled through WebGPU compute shaders that reproduce aspects of the PS2 Graphics Synthesizer, including texture layouts, palette operations and blending. The report says the renderer keeps graphics data in the simulated video memory, which matters for effects that reuse rendered images. Game disc data is read through HTTP Range requests, so only the executable is downloaded at the start. No game data is included in the repository; users supply a disc image themselves.

The developer’s performance notes describe optimization work beyond the core translation. The first GPU-renderer version made roughly 650 compute dispatches per frame; reorganizing work reduced that to about 80 while retaining the same output, according to the report. A GPU cache for recently uploaded contents cut data sent per frame by about 60 percent in the described test. At three times native resolution, the report records 23 frames per second.

“No game data is included here. You bring a disc image of a game you own, and the scripts in this repository turn it into a web page on your machine.”

— The ps2-web-recomp project report

Compatibility and Performance Still Vary

The demonstrations cover two games, and the report does not establish how many other PS2 titles work or how reliably they run. God of War II exposed one bug in the recompiler, one in vector-unit timing and missing parts of the I/O processor, according to the developer. That indicates the project’s hardware and system reimplementations remain subject to game-specific discoveries even when a title needs no custom code.

Performance figures come from the project report and a recording, not a documented independent benchmark. The source identifies Chrome and a laptop’s integrated GPU for the demonstrations but does not specify the laptop model or provide results across other browsers and devices. It also notes that some vector arithmetic can differ from the original console in the last bit. The project’s compatibility range, setup requirements and behavior on other hardware are not established in the supplied material.

More Games and Testing Ahead

The project’s next practical test is whether its existing scripts can bring up more titles and how much work those games expose in the recompiler and hardware implementations. The report says God of War II ran through the same scripts used for Gran Turismo 4, while also revealing bugs and missing I/O processor features that had not appeared in the first game.

Readers can review the repository and its short gameplay recording for the developer’s current demonstrations. The source material does not announce a release schedule, a broader compatibility list or independent performance testing. Until those details appear, the two games and the stated Chrome results are the confirmed scope of the report, rather than evidence that PS2 games generally will run in the browser.

Key Questions

What is ps2-web-recomp?

It is a project that translates PS2 game executable code into C++ and WebAssembly, with browser code recreating console systems and rendering graphics through WebGPU.

Which games does the report demonstrate?

The report describes Gran Turismo 4 and God of War II running in Chrome. It does not provide a confirmed compatibility list for other games.

Does the project include PS2 games?

No. The project says no game data is included; users provide their own disc image.

How fast do the games run?

The developer reports Gran Turismo 4 at 50 frames per second in a PAL-release test at twice native resolution. God of War II reportedly reaches 60 frames per second at native resolution in heavy combat and 48 to 60 at twice native resolution on the tested laptop. These figures are not independent benchmarks.

Will other PS2 games work?

That is not established by the supplied report. Only two games are described, and the project’s compatibility across the PS2 library remains unclear.

Source: hn

You May Also Like

How AnyLanguageModel 1.0 Brings Local Models To Apple Platforms

Hugging Face’s Swift library gives Apple-platform developers a shared API for local and hosted language models, alongside two 1.0 download tools.

Did Tech Giants Finance These AI Chip Firms? A Look At 11.2 Billion Yuan

A eu.36kr.com headline reports 11.2 billion yuan raised by chip firms linked to Li Auto and SenseTime, but the deal details are not available.

Watch an AI Team Run a Startup — Day by Day, Decision by Decision

The AI Company Emulator replays an emulated AI team running the construction-site app GewerkTon day by day, every decision visible and clearly labelled as a simulation.

Why Anthropic Is Revisiting Source Control

Anthropic has published a headline about redesigning source control, but available details do not explain the system, motivation or rollout.