Skip to content

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.

fix(ci): the pixel runner stops racing a GPU process that never arrives

esengine79b1b37ec552
diff --git a/desktop b/desktop
index 37847e795..f2a972910 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 37847e7957710af7d24a992d96dd9dfabbdaef1d
+Subproject commit f2a9729107c009c64ae2c27e44fdf1580eca32e6
diff --git a/tools/render-host/run.mjs b/tools/render-host/run.mjs
index ec14ba209..83f269d1a 100644
--- a/tools/render-host/run.mjs
+++ b/tools/render-host/run.mjs
@@ -86,6 +86,10 @@ if (process.env.ESTELLA_VERIFY_SOFTWARE_GPU) app.commandLine.appendSwitch('disab
// reach: on a runner with no device it died before any scene drew, on every
// retry. Harmless with a GPU — this is a headless verifier, not a shipped app.
app.commandLine.appendSwitch('disable-gpu-sandbox');
+// ...and on Linux there is no GPU process at all. One Electron per scene meant
+// 85 races between the page asking for WebGL2 and the service able to answer,
+// and two in three lost. Same SwiftShader in-process, so the same pixels.
+if (process.platform === 'linux') app.commandLine.appendSwitch('in-process-gpu');
// Pins the profile for anything that goes through the compositor (a screenshot
// for a human). The pixel assertions do not: a composited read is colour
// managed, turning rgb(0,255,0) into rgb(58,254,32) switch or no switch.