Mafia: The City of Lost Heaven
A cab driver picks up the wrong fare on a rainy night and ends up working for the Salieri family. Told through flashback, Mafia is a story-driven crime drama wrapped around a living 1930s city — vintage cars, jazz on the radio, and the kind of gunfights that actually hurt. Streamed straight into your browser through a WebGPU emulation layer.
Pre-Flight
Performance profile — verify before you deployBriefing
What you are deploying intoMafia: The City of Lost Heaven is the story of Tommy Angelo, a cab driver who gets tangled up with the Salieri crime family after a chance encounter on a rainy night. The game opens with Tommy telling his story to a detective, then spends two decades in flashback — 1930, 1933, 1938 — as he climbs from getaway driver to made man and finds out what the family does to people who want out.
What separates it from the open-world games around it is that Lost Heaven is a backdrop, not a playground. You drive the city's streets and learn its shortcuts, but the focus is always the story — the missions are tightly scripted, the guns are lethal, and the police will actually enforce the speed limit if you get sloppy. The cars are period real, the jazz radio is period real, and the city feels like a place, not a level.
Tommy Angelo's rise and fall, told in flashback across three eras of Lost Heaven.
A 1930s city of ethnic neighbourhoods, a riverfront, an industrial district and the countryside beyond.
Period-correct cars, trucks, trams and bikes. Manual or automatic, your choice.
Lethal, cover-based firefights. A few hits will put you down — treat every corner carefully.
Speeding, running lights and fender benders all attract attention. The city has rules.
Jazz and swing on the radio, plus an orchestral score written for the story beats.
How this deployment works
The game runs inside an emulation layer that renders through WebGPU and stores the game package in your browser's cache. The first deployment downloads the full asset set — expect it to take a while on a slower connection. Every deployment after that is served from cache and starts in seconds.
Because the emulator needs cross-origin isolation, this page registers a small service worker on your first visit and reloads itself once to activate it. That reload is expected — do not close the tab.
Performance Protocol
Do these three things before you judge the frame rate-
1
Make Chrome use your fast GPU. The emulator renders with WebGPU, and Chrome does not always pick your discrete card on its own. On Windows open Settings → System → Display → Graphics, add Chrome to the app list and set it to High performance, then restart the browser. Verify it worked by opening
chrome://gpu— your dedicated GPU should be listed first. -
2
Close other tabs and apps. Lost Heaven streams a large asset set into memory and keeps it there. Every spare tab holds GPU memory and CPU time you want back. Discord overlays, recording software and hardware monitors are the usual frame-rate suspects.
-
3
Keep FPU: Relaxed on. It is already set to Relaxed by default — leave it exactly there. It trades a meaningless amount of floating-point precision for a measurable frame-rate gain.
Field Manual
Getting the game to listen to you| Action | How |
|---|---|
| Give the game focus | Click once inside the game area. Keyboard, mouse and controller input only reach it when it has focus. |
| Fullscreen | Press the Fullscreen button above the panel, or use the game's own video settings. The button expands the game stage only, so these controls stay outside. |
| Controller | Connect the pad before the game finishes loading, then press a button once so the browser registers it. Gamepad input is passed straight through to the emulator. |
| Driving | Mafia's cars are period-accurate — slower and heavier than modern arcade racers. The handbrake is your friend on tight turns, and the city police will pull you over for speeding. |
| Mission restart | If a mission goes badly, use the game's own restart option. Most missions also autosave at checkpoints. |
| Quit the game | Use the game's own exit option. When the emulator shuts down, press Redeploy to launch it again. |
| Start over | Redeploy reloads the page and relaunches the game. Cached assets are kept. |
| Something is broken | If the player never appears, use Open in new tab — it loads the emulator directly, bypassing this page. |
Troubleshooting
The usual suspects, in order of likelihoodThe game never loads and the reticle keeps spinning
Almost always this is cross-origin isolation not being active yet. The page reloads itself once on first visit to activate the service worker — if you closed that tab too early, just reload the page manually.
Check the Cross-origin isolation card above. It must be green before the emulator can start. If it stays amber, your browser or an extension is blocking service workers — try a normal (not private) window with extensions disabled, or use Open in new tab.
It loads but the frame rate is terrible
Run the three steps in the Performance Protocol above. In particular,
confirm Chrome is actually using your discrete GPU: open chrome://gpu and
check that your dedicated card is the first adapter listed. If it says
SwiftShader or software, Chrome has fallen back to CPU rendering and
nothing else will fix the frame rate until that is corrected.
Then close every other tab and background app, and make sure the game is running in a normal window rather than a throttled background one.
Black screen, but the page thinks it loaded
Click once inside the black area to give the game focus — some builds render their first frame only after receiving input. If that does nothing, press Redeploy.
If it happens repeatedly, open chrome://gpu and make sure
WebGPU is not disabled or blocklisted. Updating Chrome usually resolves
it.
Controls do nothing
The game only receives input while it has focus. Click directly inside the game area once, then try again. If the mouse cursor is captured, press Esc to release it and click back in.
For a controller, connect it before the game finishes loading and press a button once so the browser registers it.
No sound
Browsers block audio until you interact with the page. Click inside the game once. Also check that the tab is not muted — right-click the tab and confirm Unmute site is not showing.
Why does the page reload itself the first time?
The emulator needs SharedArrayBuffer, which browsers only expose to
cross-origin isolated pages. A small service worker (coi-serviceworker.js)
adds the required COOP / COEP headers, and the page reloads once
so those headers apply. It is a one-time step per browser.
The download itself only happens once. The first deployment pulls the full package into your browser cache; after that, launches are served from cache and start in seconds. Clearing site data will force a fresh download.
Does the game need to download every time?
No. The first deployment downloads the full package into your browser cache. After that, launches are served from cache and start in seconds. Clearing site data will force a fresh download.