God of War II in Your Browser
God of War II is the second game brought up by PS2 Web Recomp — and the proof that its pipeline generalizes. It went from disc image to playable browser page through the same scripts with no game-specific code, holding 60 fps in heavy combat at the PS2’s resolution in Chrome.
Status
Playable
Frame rate
60 fps (native res)
At 2× resolution
48–60 fps
Porting effort
Generic, no game code
What you can actually play
According to the author, the game plays from the menus through its cutscenes into combat. At the PS2’s native resolution it holds 60 fps in heavy combat in Chrome; at twice the resolution it runs at 48–60, limited by the laptop’s integrated GPU on the test machine.
For scale: a God of War II build becomes roughly 670,000 lines of generated C++ before it is compiled to WebAssembly — a useful mental image of what “static recompilation” means in practice.
The porting story: every bug this game found
Because the pipeline is generic, each problem God of War II hit was a real gap in the common runtime or recompiler that Gran Turismo 4 had never triggered. The author documented them in detail:
- It started with silence. The game’s sound driver drives its tick from one of the I/O processor’s hardware timers, which nothing had implemented yet — so the driver never mixed a sample.
- The intro was a mess of huge flat polygons, and gameplay crashed after the render list ran past the end of memory and overwrote its own vertical blank handlers. Hardware watchpoints traced it to a recompiler bug: when a branch was the last instruction of a 16 KiB translation unit, the not-taken path continued at the delay slot instead of after it, running an instruction twice or executing one that a branch-likely should have skipped.
- The giant polygons came from triangles that should have been culled. God of War II’s microcode reads the clip flags three instructions after the CLIP that sets them, while the vector unit model made them visible only after four. Gran Turismo 4 never noticed because its microcode always waits longer.
- It also needed a boot path like the BIOS gives, a module loaded from memory instead of the disc, and the scratchpad DMA’s destination chain mode.
None of these fixes were written for this game specifically. They are general corrections to the recompiler and hardware model — which is exactly why the second title matters more than the first for judging whether the approach scales.
Performance: what the author reports
| Setting | Reported result | Notes |
|---|---|---|
| Native resolution | 60 fps (heavy combat) | Chrome, integrated GPU |
| 2× resolution | 48–60 fps | GPU-bound on the test laptop |
| Native runner, single thread | 43 fps | → 60 fps with the multi-threaded runner |
The threading detail is worth noting: in the browser build, the emulation, vector unit 1 and the Graphics Synthesizer each run on their own thread. In the native runner the same split takes God of War II from 43 to 60 fps at the native resolution on the test laptop. PS2_ONE_THREAD=1 puts everything back on one thread if you want to compare.
Run your own copy
You need a disc image of God of War II that you own. The author reports that a disc image goes from ISO to playable page in about three and a half minutes on an 8-core laptop. Full instructions in the step-by-step tutorial; the short version:
git clone https://github.com/snuri00/ps2-web-recomp.git
cd ps2-web-recomp
scripts/port.sh gow2 "God of War II.iso"
python3 scripts/serve.py build/web-gow2 games/gow2/disc.iso Open http://localhost:8620/ in Chrome or Edge with WebGPU enabled. Controls map to the keyboard by default (Z/X/A/S for the face buttons, Enter for Start), and gamepads work through the browser’s gamepad API.
Controls, saves and the native runner
In the browser build the keyboard maps the face buttons to Z (cross), X (circle), A (square) and S (triangle); shoulders to Q, W, 1 and 2; Start and Select to Enter and Backspace; the D-pad to the arrow keys; the left stick to I, J, K and L. Gamepads work through the browser’s gamepad API with pressure-sensitive L2/R2 and rumble where supported. Saves live on a PS2 memory card kept in the browser’s storage for the address you play from; Export card writes a .ps2 file (PCSX2 layout) and Import card restores one.
There is also a native runner: build/native-mygame/ps2run opens the game in a window when SDL2 is installed. It draws through wgpu-native on Vulkan and plays sound through SDL. PS2_SCALE=2 or 3 raises the internal resolution, --fullscreen starts fullscreen and F11 toggles it, and PS2_ONE_THREAD=1 puts the emulation, vector unit and GS back on a single thread. Any controller SDL recognizes works, including the Steam Deck’s own controls with the same trigger pressure and vibration as in the browser, and the runner can be added to Steam as a non-Steam game.
To build only the native runner, pass --native-only to port.sh — that path skips the Emscripten SDK and needs SDL2 development files instead. Expect the same roughly 300 MB per game for generated code and builds; the disc image itself is linked, not copied.
Frequently asked questions
Does God of War II run at 60 fps in the browser? +
Why is God of War II important to the project? +
Which version of God of War II is verified? +
Can I save my progress and use a controller? +
What about the first God of War? +
Do I need a PS2 BIOS? +
Next
See the flagship Gran Turismo 4 result, or the full compatibility picture including what the community is testing.
Sources: the ps2-web-recomp repository README and the author’s public notes, reviewed October 21, 2026. Performance figures are the author’s reported measurements, not independently benchmarked. The author has not published a separate God of War II recording — the demo video on this site shows Gran Turismo 4 only, so no video is presented here as evidence for this game. God of War is a trademark of Sony Interactive Entertainment; this guide is unofficial and not affiliated with the project or Sony. No game files are hosted or distributed here.