From 43764a8500c6df3524c28c4dfb46ca909952ccc5 Mon Sep 17 00:00:00 2001 From: MelekTaus Date: Mon, 12 Oct 2026 14:44:32 +0200 Subject: [PATCH] Architecture, Videos: a fixed editor size with ?w=&h= - Architecture names ?w=&h= next to the other query parameters. - Videos says how it sets the size of an editor recording. - Development counts the new e2e check 62d. Co-Authored-By: Claude Opus 5.5 --- Architecture.md | 2 ++ Development.md | 2 +- Videos.md | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Architecture.md b/Architecture.md index 233765f..f6863b1 100644 --- a/Architecture.md +++ b/Architecture.md @@ -5,6 +5,8 @@ frames skip the compositor queue, so the UI keeps up with the pointer (click to picture measured 72-77 ms before, 16-18 ms after). The price is possible tearing while things move fast; `?vsync` falls back to Pixi's own context. A browser without the mode simply ignores it. + `?w=1920&h=1080` lays the canvas out at that size in CSS pixels instead of the window's + (`ui/pageSize.ts`). A smaller window shows it shrunk to fit, the editor and a released game alike. - **Rapier 2D** (`@dimforge/rapier2d-compat`, WebAssembly) — the physics engine. Pixi draws only, so bodies, forces and contacts come from here (#144). It is a chunk of its own (about 790 KB gzip) that `runtime/physics/engine.ts` loads once in the background after the editor has opened its project, diff --git a/Development.md b/Development.md index a0d9453..4aaec44 100644 --- a/Development.md +++ b/Development.md @@ -21,7 +21,7 @@ php tests/php/releases.test.php # the release stor php tests/php/files.test.php # uploaded files in a folder per account (#344), the same way php tests/php/videos.test.php # the video store, its queue and the worker (#402), with the # real ffmpeg: the CI image and game-maker-video have it -node tools/seed-e2e.mjs && node tools/e2e.mjs # 2039 editor checks, screenshots in /tmp/gm-e2e-*.png +node tools/seed-e2e.mjs && node tools/e2e.mjs # 2040 editor checks, screenshots in /tmp/gm-e2e-*.png GM_STEPS=20 node tools/e2e.mjs # or 1-12, or 6,20 — a subset while working on one step ./e2e.sh start [GM_STEPS] # the same run detached, see below ./e2e.sh status # live progress, or the last run's result diff --git a/Videos.md b/Videos.md index 97703b9..09119ad 100644 --- a/Videos.md +++ b/Videos.md @@ -220,6 +220,9 @@ beside the menu button. - **It costs no second drawing.** The frame is copied from the canvas right after the editor drew it. An idle editor draws nothing, and the recording repeats its last picture. - **A resized window** is fitted into the size the recording started with, centred, the rest dark. +- **A size of its own:** open the editor with `?w=1920&h=1080` and its canvas is laid out at that + size, whatever the window. A smaller window shows it shrunk to fit, a larger one centred at full + size. The recording is that size times the screen's scaling (up to 2): at 100 % exactly 1920*1080. - It runs on through Play and Stop, beside a recording of the game view if a game starts one. Saving is the same: up to the server, then a video asset once the editor is not playing.