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

TL;DR

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.

A developer’s PS2 Web Recomp project translates game executables into C++ and WebAssembly and pairs them with browser-based PS2 system and graphics implementations. The developer reports that Gran Turismo 4 and God of War II run in Chrome from disc images supplied by users; the repository does not include game data.

A developer has released ps2-web-recomp, a project that runs PlayStation 2 games in a browser by translating their executable code into C++ and WebAssembly and recreating the console systems the games need. The project’s GitHub report says Gran Turismo 4 and God of War II run in Chrome, using disc images supplied by users rather than game files bundled with the project.

The project uses ahead-of-time recompilation, not a conventional PS2 emulator: its eerecomp tool analyzes a game’s executable, traces control flow and emits C++ in blocks of guest code. That code is compiled to WebAssembly and linked with implementations of PS2 operating-system services and hardware. The report says the translation preserves system-specific behavior such as the Emotion Engine’s 128-bit registers, branch delay slots and nonstandard floating-point rules.

Gran Turismo 4 was the first title tested. According to the repository, it runs from startup through its opening movie, menus and races, including music and sound effects; saves are stored in a memory card held in the browser. The developer reports a speed of 50 frames per second for the PAL version in Chrome on a laptop with an integrated GPU, at twice the PS2’s resolution.

God of War II was then brought up using the same scripts, without game-specific code, the report says. It runs from menus through cutscenes and combat. The developer reports 60 frames per second during heavy combat at the console’s resolution, and 48 to 60 at twice that resolution on the tested laptop. These are project-reported results, not independent benchmark measurements.

At a glance
announcementWhen: Reported in a Show HN post; project sta…
The developmentA GitHub project has brought Gran Turismo 4 and God of War II to browsers by statically recompiling PS2 game code to WebAssembly and implementing the console’s supporting systems.
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 Recompilation in Practice

The project shows one route to running older console software in modern browsers: translate a game’s machine code before execution, then implement the hardware and operating-system behavior it depends on. That approach can avoid interpreting the main CPU instructions one by one, while still requiring accurate handling of specialized components such as the PS2’s vector units, graphics processor and sound hardware.

The reported results matter because the two games place different demands on the system, and the developer says God of War II exposed a recompiler bug and a vector-unit timing bug that Gran Turismo 4 did not reveal. The work therefore also illustrates how testing additional titles can uncover gaps in a compatibility layer. It does not establish that all PS2 games will work, or that browser performance will match the results on other computers.

Amazon

PlayStation 2 disc images for PC

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

How the PS2 Runs in a Browser

The project combines several components rather than translating the main game executable alone. It reimplements parts of the PS2 kernel, interprets the console’s I/O processor and runs game-provided modules for tasks such as disc streaming, sound and memory-card access. The developer says game data is read through HTTP Range requests, so only the executable is downloaded at the start; users must provide their own disc image.

Graphics are handled through WebGPU compute shaders, with the PS2 graphics processor’s video memory and rendering rules represented in the browser. The project also implements sound processing and MPEG-2 movie decoding. In the development account, an early Gran Turismo 4 race ran at about three frames per second at native resolution with software graphics and an interpreter for one vector unit. Moving rendering to WebGPU and compiling vector-unit programs raised performance to about 70 frames per second in that test, before later optimization work.

The repository describes further changes to reduce graphics overhead, including batching work to cut compute dispatches and caching texture data. It also says the project has a software graphics renderer used as a reference for checking GPU output. These engineering details help explain the reported speed, but the repository’s account does not provide independent testing across browsers or hardware.

“No game data is included here. You bring a disc image of a game you own.”

— The ps2-web-recomp GitHub repository

Amazon

WebAssembly development tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Compatibility and Performance Limits

The repository reports results for two games and a particular setup, but does not establish how many other PS2 titles work or how reliably they run. Performance depends on the computer, browser and resolution; the stated frame rates come from the developer’s tests on a laptop with an integrated GPU. The source material does not provide independent verification or a broader benchmark suite.

Some technical limits are acknowledged in the project description. Vector-unit arithmetic uses the host’s calculations, which can differ from the PS2’s in the last bit. The account also says God of War II exposed bugs and missing I/O-processor functionality that had not been encountered in the earlier title. The report does not specify the project’s legal position in each jurisdiction, and readers should not assume that owning a disc automatically resolves every question about making or using a disc image.

Amazon

browser-based PS2 emulator

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

More Games and Compatibility Testing

The repository presents the work as an ongoing project, but the supplied report does not give a release schedule, a list of planned supported games or a date for a broader compatibility assessment. The next useful measure of progress will be whether additional titles can run through the same tools and whether their behavior is tested on a wider range of browsers and hardware.

For now, readers can consult the project’s GitHub repository for its scripts, setup details and current instructions. Any claims about game support or speed should be treated as project-reported until they are reproduced independently.

Amazon

gaming laptop with integrated GPU

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Is this a conventional PS2 emulator?

No. The project says it translates executable code ahead of time into C++, compiles it to WebAssembly and links it to browser-based implementations of PS2 systems. It does not rely on interpreting the main CPU instructions in the same way as a conventional emulator.

Which games does the report say run?

The GitHub report describes Gran Turismo 4 and God of War II. It does not establish support for the full PS2 library.

Does the project include the games?

No. The repository says no game data is included and users must supply a disc image. The source does not settle the legal rules for creating or using such images in every location.

What performance did the developer report?

For Gran Turismo 4’s PAL release, the developer reports 50 frames per second at twice the PS2’s resolution in Chrome on a laptop with an integrated GPU. For God of War II, the report gives 60 frames per second at native resolution during heavy combat and 48 to 60 at twice the resolution. These figures are not independent benchmarks.

Will every PS2 game work in a browser?

The report does not say that. It details two games and notes that testing God of War II uncovered bugs and missing I/O-processor features. Support and performance for other titles remain unclear.

Source: hn

HALLOWEEN

Halloween Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Robert Pattinson Didn’t Realize FF7 Remake Was A Trilogy #Primetime

Actor Robert Pattinson revealed he was unaware that Final Fantasy 7 Remake is planned as a trilogy, sparking interest in the game’s development scope.

The Pulse: Firebase’s Global Outage & Poor Response

A Firebase backend change triggered crashes in apps using its iOS Analytics SDK for 2–6 hours, while Google reportedly left its status page unchanged.

Show HN: Git-knife – Edit Commit Messages, Authors, And Dates Like A Spreadsheet

Git-knife, a new open-source tool announced on Show HN, allows users to edit commit messages, authors, and dates in Git repositories through a spreadsheet-like interface.

Maintain A Healthy Smile With Daily Gum Line Photos

A new approach tests daily gum-line photos for early detection of gum issues, aiming to enhance preventive dental care between visits.