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
chore(gates): gizmo acceptance drags where the handles are at their default size, and the release notes follow
yhh866b18a48b4d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ffcadfa20..060d38cf9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -40,6 +40,8 @@ published separately; it ships inside the editor.### Fixed+- **An agent's `get_stats` waits out a long frame.** It gave a running game two seconds to answer, so on a machine that takes that long to draw a frame it said the game had stopped.+- **A saved scene reaches a device preview on Linux.** The project watch followed each file's inode, so a file replaced by rename stopped reporting. It watches each folder there now, which also ends the crash when a watched folder was deleted during a scan.- **Water costs a phone half of what it did.** A full-screen sea on a Snapdragon 8 Elite went from 45 ms to 21.5 at full quality, with the same picture. Every lit material on a phone gains part of it: the light loop read all sixteen slots for every pixel, and now stops at the lights there are. A surface can also declare `#pragma lighting direct` to compile out what it never reaches. Water does, so water takes the first sixteen lights only.- **A quality level can skip every effect there is.** The list was cut at thirty-two and there are forty effects now, so the last ones in name order kept running while the row showed them off.- **A new material no longer shows the inside of a sphere.** An opaque mesh tests and writes depth whatever its material says, and a new surface material tests depth.diff --git a/desktop b/desktopindex bdac6ff3e..cab64b053 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit bdac6ff3ead6f37bb6c1399cb80ad30fdc5a3d51+Subproject commit cab64b0538ace0a96a2b946c178e48d07300d3bddiff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex e4f4715ff..cba3b4371 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -3948,4 +3948,8 @@ export const NOTED = {{"internal": "CI only: which scenes a runner launches."},"fix(templates): the 3D templates' camera no longer names a field Camera dropped, and the debug channel's test knows the world the stats read":{"internal": "The stale field was dropped on load either way, so no frame changes; the rest is a test."},+ "fix(play): get_stats waits out a long frame, where two seconds read a slow machine as a game that had stopped":+ {"note": "An agent's `get_stats` waits out a long frame."},+ "fix(project): a saved file reaches the device preview on Linux, where the watch followed the file's old inode":+ {"note": "A saved scene reaches a device preview on Linux."},};diff --git a/tools/verify-gizmo-origins.mjs b/tools/verify-gizmo-origins.mjsindex 905765269..e0b550fab 100644--- a/tools/verify-gizmo-origins.mjs+++ b/tools/verify-gizmo-origins.mjs@@ -42,20 +42,21 @@ const records = [];try {// Where a drag starts is where the handle IS, in CSS px from the pivot: the rotate ring's radius, the end of the// scale arrow, the end of the universal tool's separate scale arrow — GIZMO in desktop/src/tools/gizmo.ts.- const RING = 66, SCALE_ARROW = 80, UNIVERSAL_SCALE = 100;+ // All at gizmoSize 1.2, the store's default: at the bare constants a drag starts inside the ring and marquee-selects instead.+ const RING = 79, SCALE_ARROW = 96, UNIVERSAL_SCALE = 120, MOVE_SHAFT = 60, UNIVERSAL_SHAFT = 50, UNIVERSAL_RING = 56;const cases = [...['center', 'individual'].flatMap(pivot => [{ pivot, mode: 'rotate', ox: RING, dx: -RING, dy: -RING },{ pivot, mode: 'scale', ox: SCALE_ARROW, dx: SCALE_ARROW, dy: 0 },- { pivot, mode: 'move', ox: 50, dx: 25, dy: 0 },+ { pivot, mode: 'move', ox: MOVE_SHAFT, dx: 25, dy: 0 },]),{ pivot: 'individual', mode: 'scale', ox: SCALE_ARROW, dx: SCALE_ARROW, dy: 0, cancel: true },{ pivot: 'individual', mode: 'rotate', ox: RING, dx: -RING, dy: -RING, alt: true },- { pivot: 'individual', tool: 'universal', mode: 'move', ox: 42, dx: 25, dy: 0 },+ { pivot: 'individual', tool: 'universal', mode: 'move', ox: UNIVERSAL_SHAFT, dx: 25, dy: 0 },{ pivot: 'individual', tool: 'universal', mode: 'scale', ox: UNIVERSAL_SCALE, dx: UNIVERSAL_SCALE, dy: 0 },- { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: 47, oy: -47, dx: -90, dy: 0 },+ { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: UNIVERSAL_RING, oy: -UNIVERSAL_RING, dx: -90, dy: 0 },{ pivot: 'individual', tool: 'universal', mode: 'scale', ox: UNIVERSAL_SCALE, dx: UNIVERSAL_SCALE, dy: 0, cancel: true },- { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: 47, oy: -47, dx: -90, dy: 0, alt: true },+ { pivot: 'individual', tool: 'universal', mode: 'rotate', ox: UNIVERSAL_RING, oy: -UNIVERSAL_RING, dx: -90, dy: 0, alt: true },];for (const c of cases) {const name = `${c.tool === 'universal' ? 'universal-' : ''}${c.pivot}-${c.mode}${c.cancel ? '-escape' : c.alt ? '-duplicate' : ''}`;diff --git a/tools/verify-gizmo-planes.mjs b/tools/verify-gizmo-planes.mjsindex 60a2881cb..95d37570f 100644--- a/tools/verify-gizmo-planes.mjs+++ b/tools/verify-gizmo-planes.mjs@@ -18,7 +18,8 @@ fs.writeFileSync(path.join(project,'src/main.ts'),'export {};');fs.writeFileSyncconst read=`(async()=>{const e=window.__estellaEditor;const snap=()=>{const t=e.surface.serializeScene().entities.find(v=>v.id===1).components.find(c=>c.type==='Transform').data;return {position:t.position??{x:0,y:0,z:0},scale:t.scale??{x:1,y:1,z:1},rotation:t.rotation??{x:0,y:0,z:0,w:1}};};const pose=snap(),layout=e.gizmoLayout();if(!window.__planesRead){window.__planesRead=true;return {pose,layout};}e.surface.undo();const undone=snap();e.surface.setViewPerspective(false);e.surface.setViewOrbit(0,0);e.runCommand('tool.move');await new Promise(resolve=>requestAnimationFrame(()=>requestAnimationFrame(resolve)));return {pose,layout,undone,flatLayout:e.gizmoLayout()};})()`;// CSS px of GIZMO in desktop/src/tools/gizmo.ts: the view ring starts at its radius and a quarter turn ends// that far down; a centre scale drag of one axisLen is a factor of 2.-const VIEW_RING=78,SCALE_LENGTH=80;+// At gizmoSize 1.2, the store's default.+const VIEW_RING=93.6,SCALE_LENGTH=96;const records=[];try{for(const axis of ['xy','yz','zx','view','xyz','rotate-view']){