Ship to the web

Package a game as a browser player that renders through WebGPU and streams its archives over HTTP, what the web build leaves out, and how to serve it.

Last updated Dec 4, 2026Version 1.1.0

A Mowo game can run in a web browser. The browser build is your game's player (never the editor) compiled to WebAssembly. It renders through WebGPU and loads its archives from your web server while it plays, so players open a link and play with nothing to install.

Warning

The web platform is in development. The packaging command, the page and the WebGPU renderer exist, but the web build has not yet been run end to end in a browser, and it needs prerequisites that do not ship yet (see What it needs). Treat this page as the plan for how it will work.

Package for the web

Shell
mbt package-web --project MyGame.mproject
mbt package-web --project MyGame.mproject --serve

package-web builds the player for the web-wasm32 platform, compiles your shaders to WGSL, cooks your content and writes the package to Output/Package/Web/<Product>/:

FileWhat it is
index.htmlThe page. It checks for WebGPU, sets up the GPU device, shows download progress and starts the game.
MowoGame.js, MowoGame.wasmThe player.
boot/The archives the first frame needs: engine content, shaders and your project's base content.
paks/Everything else. These archives are fetched piece by piece as the game reads them.
paks.jsonName, size, checksum and boot flag of every archive. The player reads it on start.

Options:

OptionEffect
--serveAfter packaging, serve the folder on http://localhost:8080/ so you can open it in a browser.
--port <n>Port for --serve.
--no-brotliSkip the .br copies of the page, script and .wasm.
-c <config>Build configuration. The default is release.
--skip-build, --skip-shadersReuse the last build or shaders.

Web builds are always monolithic: the whole player is one .wasm.

Host it

Any static web server works, as long as it:

  • serves .wasm as application/wasm;
  • answers HTTP range requests (Range: bytes=…) on the archives, because the player reads them in 1 MiB pieces instead of downloading them whole;
  • serves over HTTPS, since browsers enable WebGPU only on secure pages (localhost counts as secure).

The first web release runs single-threaded, so no cross-origin isolation headers are needed. A later multi-threaded build will need them.

The player keeps the archive pieces it has downloaded in the browser's private storage (the Origin Private File System), so a second visit loads from disk. A browser without that storage, or a private window, downloads again each time.

Browsers

The page needs WebGPU. When the browser has none, it says so and stops. At the time of writing, WebGPU is available in Chrome and Edge on Windows, macOS and ChromeOS, in Chrome on Android, in Firefox on Windows, and in Safari 26. Check your players' browsers before you rely on it.

What the web build leaves out

The browser build renders with the same tier as Direct3D 11. It has:

  • no ray tracing, path tracing or ray-traced reflections and shadows;
  • no mesh shaders or bindless textures, so materials use the non-bindless path;
  • no vendor upscalers (DLSS, FSR, XeSS) and no frame generation: use the engine's TAA or TSR;
  • no async compute and no draw-indirect-count;
  • no GPU timings in the profiler;
  • no Steam, EOS or Discord, no crash upload, no machine-learning features, and no launching other processes;
  • nothing saved between visits yet: logs and save games live in memory only.

Wave intrinsics compile as a single lane unless the browser offers subgroups, which only some passes take advantage of.

Test with WebGPU on your desktop

The same WebGPU renderer also runs natively on Windows, Linux and macOS through Dawn, which lets you see web-only rendering problems before you deploy:

Shell
MyGame --rhi=webgpu

--webgpu is the same switch. WebGPU is never offered in the graphics settings of a desktop game. It is a testing backend there, and the build includes it only when the engine was built with Dawn.

What it needs

Before the first browser run, the engine needs:

  • the Emscripten SDK, found through EMSDK or the toolchain settings;
  • WebAssembly builds of the third-party libraries the player links;
  • a first end-to-end run in Chrome to confirm the page, the GPU device, archive streaming and the browser storage cache.

Page feedback

Was this page helpful?