This is the quickest way to try gametau running in Electrobun after the upstream WGPU release.
gametau now supports two Electrobun shell shapes:
BrowserWindow+ embedded<electrobun-wgpu>for the hybrid pathGpuWindowfor a native WGPU shell that still reuses the shared Rust/WASM backend loop
The fastest reference example is examples/electrobun-counter.
From repo root:
bun install
bun run --cwd packages/webtau build
bun run --cwd packages/webtau-vite buildLaunch the hybrid BrowserWindow path:
bun run --cwd examples/electrobun-counter dev:electrobun:hybridLaunch the GPUWindow path:
bun run --cwd examples/electrobun-counter dev:electrobun:gpuWhat you should see:
- Hybrid mode: a native Electrobun window loads the Vite app, the counter UI works normally, and an embedded native WGPU surface runs inside the same BrowserWindow.
- GPU mode: a native
GpuWindowopens and the shared counter state advances through the WASM-backed game loop.
This path is sequenced before pure GpuWindow because it proves the render/UI split with lower risk:
- existing DOM HUD and controls stay intact
- native WGPU rendering is exercised in the same app shell
- resize, masking, passthrough, and overlay behavior can be validated before broader renderer refactors
bunx create-gametau my-game --desktop-shell electrobun
bunx create-gametau my-game --desktop-shell electrobun --electrobun-mode dualThe generated scaffold keeps the web/Tauri path intact and adds:
electrobun.config.tssrc/bun/browser.tssrc/bun/gpu.tsdev:electrobun/build:electrobunscripts
bun run --cwd examples/electrobun-counter build:electrobun:hybrid
bun run --cwd examples/electrobun-counter build:electrobun:gpuChrome, Tauri, BrowserWindow Electrobun, and GPUWindow Electrobun are separate runtimes. They do not share in-memory state automatically. If you need continuity across runtimes, use a shared backend or persistence layer.
- Electrobun WGPU announcement: https://blackboard.sh/blog/wgpu-in-electrobun/
- Tracking issue: #159
- Hybrid showcase issue: #160
- Render-mode capability issue: #161