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(golden): the editor's frame shares the rasterizer too

esengine2a9a5dddb5b2
diff --git a/desktop b/desktop
index 65cee1f76..051561007 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 65cee1f766e7b31b62fc9195b5326bf2ac5d93a3
+Subproject commit 051561007978063bf2a2748eda3f9ca1d66b6e1b
diff --git a/tools/verify-golden.mjs b/tools/verify-golden.mjs
index 917bc8201..290871bd3 100644
--- a/tools/verify-golden.mjs
+++ b/tools/verify-golden.mjs
@@ -411,7 +411,11 @@ for (const { id, target } of pairs) {
const tolerance = COMPARABLE.has(target) && !NO_PARITY ? parityFor(golden) : null;
const editorPng = path.join(WORK, `${id}-editor.png`);
- const editor = tolerance != null ? captureEditorFrame(id, editorPng, timeoutMs) : null;
+ // ...times SHARE, as launchPackage already does for the other side: both frames
+ // are taken on ONE rasterizer and only the package's half knew it was sharing.
+ const editor = tolerance != null
+ ? captureEditorFrame(id, editorPng, timeoutMs ? timeoutMs * SHARE : timeoutMs)
+ : null;
if (editor && !editor.ok) {
results.push({ id, target, stage: 'editor-frame', ok: false, why: editor.why });
console.log(`✗ ${id} ${target} — the editor never produced a play frame`);