← Tuesday, October 13, 2026Performance & OSTool

PS2 games run in WebAssembly after ahead-of-time recompilation

github.com 11 min read Editor score 8/10

Preview image for PS2 games run in WebAssembly after ahead-of-time recompilation

The project translates PlayStation 2 machine code to C++, then compiles it to WebAssembly; Gran Turismo 4 reportedly runs at 50 fps in Chrome on an integrated GPU. Its recompilation approach and performance make it a useful case for engineers working on runtimes and compatibility.

What
PS2 Web Recomp runs PlayStation 2 games in a browser by statically recompiling them rather than using an emulator.
How
eerecomp translates game machine code into C++, which is compiled to WebAssembly and linked against a PS2 system and hardware reimplementation.
Why it matters
Preserving CPU quirks, vector timing, and hardware behavior shows the compatibility work needed to run complex legacy software on a browser stack.
emits compiled to draws with eerecomp C++ WebAssembly WebGPU
The recompilation pipeline turns PS2 game code into browser-executable WebAssembly rendered with WebGPU. Sketched from the article's own text.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.