A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(editor): the viewport still draws where there is no GPU
esengine1f1f1d72f523
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ffa3d3033..b596fad31 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -77,6 +77,14 @@ published separately; it ships inside the editor.### Fixed+- **The viewport still draws on a machine with no usable GPU.** Chromium refuses+ WebGL2 outright ("WebGL2 blocklisted") where no hardware GL is available — a VM,+ a remote desktop, a blocklisted driver, a CI runner — unless software rendering+ is opted into, and the editor never opted in. The engine then never booted, so+ the project opened onto a blank viewport that never loaded a scene, and every+ question about the scene timed out. SwiftShader only ever takes over when+ hardware GL is unavailable: a slow viewport where there was no viewport at all.+- **A world label lands where it is put.** `rectTextBox` hands the boxed text pathan origin already carrying the baseline (−0.8em); the boxless path started froma bare 0, so `verticalAlign: Middle` centred the block on a *baseline* ratherdiff --git a/desktop/electron/main.ts b/desktop/electron/main.tsindex a1f8e8d6a..dd2ac1b61 100644--- a/desktop/electron/main.ts+++ b/desktop/electron/main.ts@@ -84,6 +84,13 @@ import type { WorkspaceState } from '../src/project/format';// switch the headless verify harness sets.app.commandLine.appendSwitch('enable-unsafe-webgpu');+// Where no usable GPU exists — a CI runner, a VM, a remote desktop, a blocklisted+// driver — Chromium refuses WebGL2 outright ("WebGL2 blocklisted") unless software+// rendering is opted into. The viewport IS the editor, so a refused context is a+// dead app rather than a slow one; SwiftShader only ever takes over when hardware+// GL is unavailable. Every headless harness here sets it for the same reason.+app.commandLine.appendSwitch('enable-unsafe-swiftshader');+// The window sets `backgroundThrottling: false`, but that only reaches ITS renderer —// and the game does not run there. The play realm is a cross-origin (estella://) frame,// so it lives in its own renderer process, which Chromium still backgrounds when the