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:
@@ -649,6 +649,10 @@ function buildOfficePlan(
|
|||||||
plan: scene.plan,
|
plan: scene.plan,
|
||||||
camera: scene.camera,
|
camera: scene.camera,
|
||||||
controls: scene.controls,
|
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) {
|
onSeek(x, z) {
|
||||||
/**
|
/**
|
||||||
* The same move the city plan makes, and for the same reason: slide the
|
* The same move the city plan makes, and for the same reason: slide the
|
||||||
|
|||||||
Reference in New Issue
Block a user