logoalt Hacker News

shan-pafin • today at 5:39 PM • 1 reply • view on HN

Recompiling PS2 games to WebAssembly is insane. Have you noticed any major performance bottlenecks when running heavier titles in the browser?


Replies

deadxwarrior • today at 5:56 PM

the GS was the biggest one, i emulate it in WebGPU compute shaders, and texture sampling alone takes about a third of the GPU time, so at 2x GoWw is gpu-bound on an integrated gpu. On the cpu side, VU1 microcode and the GS front end each take roughly a quarter of the time, so both run on their own threads. another one was synchronous GPU readbacks in GT4, and about a thousand tiny effect draws per frame in GoW2 combat batching and caching fixed most of them, and it holds 60fps at native resolution

➕ show 1 reply