1
0

The office plan takes the phone's pixel ceiling too

`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.
This commit is contained in:
2026-08-06 02:07:14 -07:00
parent 3e9b97ed8b
commit d188db9299
+4
View File
@@ -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