From d188db9299e80a7c8601df91fa9aeb2095f478ef Mon Sep 17 00:00:00 2001 From: Kartios Date: Thu, 6 Aug 2026 02:07:14 -0700 Subject: [PATCH] The office plan takes the phone's pixel ceiling too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `minimap.ts` is handed `deviceProfile().maxPixelRatio` and `officeMinimap.ts` was not, so it defaulted to 2 and rendered a phone's floor plan at twice the fill rate the city plan had already decided that handset could afford. Two 2D canvases in one corner of one page disagreeing about what a phone is: exactly the drift `deviceProfile` lives in a single file to prevent, and stage.ts says so at the top. Mine to fix — it arrived with the plan two commits ago. --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index 04f8450..dba552a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -649,6 +649,10 @@ function buildOfficePlan( plan: scene.plan, camera: scene.camera, controls: scene.controls, + // The same ceiling the city plan takes, from the same place. Two 2D canvases + // in one corner of one page disagreeing about what a phone can afford is the + // exact drift `deviceProfile` exists in one file to prevent. + maxPixelRatio: deviceProfile().maxPixelRatio, onSeek(x, z) { /** * The same move the city plan makes, and for the same reason: slide the