PROJECT · SINCE 30 OCT 2026

THUG2 in the browser

Tony Hawk's Underground 2 (PC, 2004) compiled from its decompiled C++ to WebAssembly and drawn with WebGPU, to see how fast a browser is

C++EmscriptenWebAssemblyWebGPUWeb AudioCloudflare Workers
The Training level, drawn through WebGPU at 1920x1080: the skater rolls across the concrete floor while another skater grinds a ledge behind, between a kicker ramp and the garage at the back.

A friend’s request, run as a test of how fast a browser is today: Tony Hawk’s Underground 2 for PC, running in the browser as the game’s own code, not under an emulator. The community decompilation’s C++ is compiled to WebAssembly with Emscripten, and the game’s Direct3D 9 renderer is redrawn on WebGPU.

What it is

How it was built

Claude wrote the code, starting from the community’s C++ decompilation of the game. João set the method (no emulation), steered with high-level instructions and tested on the Mac, the PC and his iPhone. The repository holds no game files: it runs from your own copy of the game.

Status

Active. The Training level plays with sound in Chrome and on an iPhone 17 at 60 fps. A few small bugs are left. The benchmark against the original is still to come. Open source.

Articles

Tony Hawk's Underground 2, compiled for the browserTony Hawk's Underground 2 for PC, running at 60 fps in Chrome and on an iPhone. It isn't emulated. The game's own C++ is compiled to WebAssembly and drawn with WebGPU. This is what that took, over two days.6 min read