← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

PlayStation 2 Games Statically Recompiled to WebAssembly for Browser Play

🔄 Updated 26d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • PS2 games recompiled to WebAssembly, not emulated.
  • Uses C++ and WebAssembly with WebGPU for rendering.
  • Gran Turismo 4 and God of War II run in browser.
  • Requires user to provide game disc image.

WebAssembly Recompilation for PS2 Games

PlayStation 2 games can now run in web browsers through a static recompilation process, bypassing traditional emulation. This method translates the PS2's Emotion Engine machine code directly into C++, which is then compiled into WebAssembly. The recompiled code integrates with a reimplementation of the PS2's operating system and hardware, utilizing WebGPU for graphics rendering.

Technical Approach and Game Performance

The recompilation process, similar to psp-web-recomp, involves `eerecomp` reading game executables and emitting C++ code that preserves the R5900's specific architectural quirks, such as 128-bit registers and unique floating-point behavior. The first title demonstrated, Gran Turismo 4, a demanding game, runs at full speed (50 FPS PAL) at twice the PS2's resolution in Chrome on integrated GPUs. God of War II also runs, achieving 60 FPS in combat at native PS2 resolution, and 48-60 FPS at twice the resolution.

Operating System and Hardware Reimplementation

The system includes a small PS2 kernel that provides high-level emulation for operating system components like threads, semaphores, interrupt handlers for DMA and vertical blank, alarms, and the SIF channel. This allows the recompiled games to interact with a virtualized PS2 environment. Users must provide their own game disc images, which the repository's scripts convert into a web page.

Bug Discovery and Compatibility

During the porting of God of War II, two bugs were identified that Gran Turismo 4 had not triggered: one in the recompiler and another in the vector unit timing. Additionally, some missing components of the PS2's input/output processor were discovered. These findings indicate the robustness of the recompilation method in uncovering system-level discrepancies.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

A new method allows PlayStation 2 games to run in web browsers without traditional emulation by statically recompiling Emotion Engine machine code to C++ and then to WebAssembly. This approach links against a reimplementation of the PS2's operating system and hardware, using WebGPU for rendering, enabling demanding titles like Gran Turismo 4 and God of War II to run directly in a browser.