← Tuesday, October 13, 2026Performance & OSTool
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.
Read on github.com → Hacker News · 148 comments
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.