feat: the boards stop being three products
The owner asked twice why there are still three separate boards. The honest answer, and what this round executes: **it feels like three boards, but not because the scale jumps 20x — because the three packs draw three different Californias, and the loudest difference is that the mountains are four times taller on one of them.** **THE 20x HORIZONTAL SCALE JUMP IS INVISIBLE**, and measuring that collapsed the cost of this whole round. `World.project` is a uniform scale in x/z with no vertical term, and a uniform scale leaves a perspective image identical — so a camera carried across the seam on matched true-metre offsets draws a pixel-identical horizontal frame. 1,919 -> 94 m/unit costs nothing to look at. Rescaling was never the problem. A boot card, a tab strip and a 4.17x vertical deflation were. **THE PAUSE WAS MOSTLY FAKE.** A switch covered the screen for 1,715 ms but only 608 ms blocked the main thread; the page drew 46 of 69 frames with nothing to show, because the outgoing board had already been disposed. `mountCity` now retains it: the incoming board builds BEHIND a live, interactive picture, and `stage.setScene` fires only on completion. Measured across all six directions, three runs each — boot card yes -> **no**, opaque cover 726-1,415 ms -> **0**, blank frames 21-46 -> **exactly 1**, wall clock down 12-29%, blocked main thread down 15-47%. A return to a board already seen links **zero** shader programs and blocks **zero** milliseconds: 298-312 ms of camera flight where it was ~1,600 ms behind a card. Disposal had been throwing away the shader cache too — linkProgram ran 38, 59, 78, 109, 127 across five mounts and never reused one. **The transition is a fog dip, not a crossfade**, through the `setAerialFog` seam built last round. Every both-boards-live crossfade breaks a budget — ca+sf is 2,640,307 triangles against bay-area's 2,600,000 cap — and a fade never lands inside the harness's sample window, which is the "a cap you do not measure is a cap you do not have" failure this repo already argues against. The dip costs zero triangles and zero draw calls, and it hides the 4.17x deflation, the 4,025 m projection disagreement and the vanishing 2 km freeway symbols at once, because all three happen at maximum obscuration. It is also diegetic: a descent through haze. The first dip was wrong and the photograph caught it: collapsing to 6% of board SPAN turned the whole night frame into one flat field — the exact "turns the map off" failure the risk list named. Re-anchored to 70% of camera STAND-OFF, so the coastline survives and only the relief melts. **One ladder, one places list.** 26 authored chapters become 24 rungs sorted descending by STAND-OFF, not altitude — by altitude they interleave badly and altitude cannot tell a low oblique from a high plan. The three-board tab strip is off by default; the left column is now one scrolling list of all 24 rungs under three region headings that does not change when the board does. Only which row is lit changes. Label collisions are resolved in the ladder and never in a pack, so the 29 index-aimed capture guards are untouched. The minimap stops turning through 90 degrees between boards: every board is pinned to a rectangle with California's proportions. **SF and SoCal are not regressed**, and that was the acceptance that mattered: 95.9-98.8% of board pixels are delta-0 against a baseline hash-verified identical to what the live site serves, and every one of the 34-70 surviving pixels per frame is an aircraft or a hull. **A real defect found only by photograph:** `minimap.setMarkers()` had zero call sites. Every marker on every board was gone — the LA studio's door dot, the Bay Area's eight company markers — dropped when the minimap went per-board. Typecheck, tests, budgets and the console were all green with that bug in. Also fixed: two capture presets that lied. `look.mjs`'s `glyph-la` and `glyph-sf` claimed California chapter closeups and returned SoCal and Bay Area frames, because they aimed by chapter index and the indices had moved. Aiming is now by identity, with a guard test. NOT SHIPPED, DELIBERATELY: the pack merge. At Bay density it is 34.04M triangles, 13x the highest budget — dead, not a trade. At SoCal density it is 1.99M and fits today, and the price is San Francisco rendering at 164 m lots instead of 40 m, i.e. SF looking the way SoCal looks now. SF and SoCal carry every marketing still on the site. That is the owner's decision and it is worthless as an argument and decisive as a photograph, so it ships as a measurement artifact with a side-by-side still and is wired into nothing. The four data reconciliations that would make one world honest — one exaggeration rule, roads in metres, one projection centre, one coastline convention — are behind TERA_RECONCILE, default OFF. Tests 1,570 -> 1,651, server 295. All ten budget cells pass, no cap raised. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -16,12 +16,54 @@ const VIEWPORTS = {
|
||||
desktop: { width: 1440, height: 900, deviceScaleFactor: 1 },
|
||||
mobile: { width: 390, height: 844, deviceScaleFactor: 2, isMobile: true, hasTouch: true },
|
||||
};
|
||||
/*
|
||||
* EVERY SCENE NAMES THE BOARD IT MEANS, AND CHECKS IT GOT IT.
|
||||
*
|
||||
* `?city=` falls back to the first board rather than failing on an unknown id —
|
||||
* deliberately, so a deep link to a city this build does not have shows a city
|
||||
* instead of a black screen — and that fallback is silent. A `bay-area` cell
|
||||
* that quietly measured California would pass its 2.6M-triangle cap by a factor
|
||||
* of six and would keep passing through any regression a phone would choke on:
|
||||
* a budget that cannot fail. So every scene names a `signature` — one chapter
|
||||
* `data-view` that exists on that board and on no other — and does not become
|
||||
* ready until it is on screen.
|
||||
*
|
||||
* A SIGNATURE CHAPTER RATHER THAN THE BOARD TAB, deliberately. The obvious check
|
||||
* is the `data-board` of the pressed tab, and it was written that way first; it
|
||||
* broke within the hour, because the tab strip is chrome and chrome is exactly
|
||||
* what the continuity work is allowed to change. A chapter id is pack data, it
|
||||
* is what `scripts/fixtures/chapter-identity.json` pins, and it is what every
|
||||
* capture aim resolves to. `hayes-valley` and `dtla` are unique across the three
|
||||
* packs; `all` is not, which is why neither metro is identified by its first
|
||||
* chapter.
|
||||
*
|
||||
* `california-drive` used to reach its chapter with
|
||||
* `document.querySelectorAll("#chapters .chapter")[1].click()`. That is an
|
||||
* unguarded index into pack data, and it is the exact pattern that once shipped
|
||||
* a share card of a chase camera on a freeway under the headline "Cities from
|
||||
* above" — see the note at `scripts/brand-assets/capture.mjs:70`. It now aims at
|
||||
* `data-view="la-sf-us-101"` and asserts the printed label, so a reordered pack
|
||||
* stops the run instead of quietly measuring a different scene under the old
|
||||
* scene's caps.
|
||||
*/
|
||||
const SCENES = {
|
||||
california: { host: "tera.lumbridgecorp.com", ready: () => document.getElementById("boot")?.hidden === true && document.querySelectorAll("#chapters .chapter").length > 0 },
|
||||
california: {
|
||||
host: "tera.lumbridgecorp.com",
|
||||
signature: "california-overview",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelector("#chapters .chapter[data-view='california-overview']") !== null,
|
||||
},
|
||||
"california-drive": {
|
||||
host: "tera.lumbridgecorp.com",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelectorAll("#chapters .chapter").length > 1,
|
||||
activate: () => document.querySelectorAll("#chapters .chapter")[1]?.click(),
|
||||
signature: "california-overview",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelector("#chapters .chapter[data-view='california-overview']") !== null && document.querySelector("#chapters .chapter[data-view='la-sf-us-101']") !== null,
|
||||
activate: () => {
|
||||
const button = document.querySelector("#chapters .chapter[data-view='la-sf-us-101']");
|
||||
if (button === null) throw new Error("no chapter with data-view='la-sf-us-101' on this board");
|
||||
const spans = [...button.querySelectorAll("span")];
|
||||
const label = (spans[spans.length - 1]?.textContent ?? "").trim();
|
||||
if (label !== "101") throw new Error(`chapter la-sf-us-101 prints "${label}", not "101" — the pack was re-labelled`);
|
||||
button.click();
|
||||
},
|
||||
active: () => document.querySelector("[data-control-mode='drive']")?.getAttribute("aria-pressed") === "true" && document.getElementById("play-hud")?.hidden === false,
|
||||
},
|
||||
office: { host: "office.lumbridgecorp.com", ready: () => document.getElementById("boot")?.hidden === true && document.getElementById("enter")?.textContent?.includes("Back to the city") === true },
|
||||
@@ -45,12 +87,14 @@ const SCENES = {
|
||||
"bay-area": {
|
||||
host: "tera.lumbridgecorp.com",
|
||||
query: "?city=sf",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelectorAll("#chapters .chapter").length > 0,
|
||||
signature: "hayes-valley",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelector("#chapters .chapter[data-view='hayes-valley']") !== null,
|
||||
},
|
||||
socal: {
|
||||
host: "tera.lumbridgecorp.com",
|
||||
query: "?city=socal",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelectorAll("#chapters .chapter").length > 0,
|
||||
signature: "dtla",
|
||||
ready: () => document.getElementById("boot")?.hidden === true && document.querySelector("#chapters .chapter[data-view='dtla']") !== null,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -408,6 +452,13 @@ async function measure(browser, port, sceneName, viewportName, budget, requestLo
|
||||
bootHidden: document.getElementById("boot")?.hidden ?? null,
|
||||
bootText: document.getElementById("boot")?.textContent?.trim().slice(0, 240) ?? null,
|
||||
chapters: document.querySelectorAll("#chapters .chapter").length,
|
||||
// Which chapters actually answered. A readiness timeout on a metro cell
|
||||
// is now most likely to mean `?city=` fell back to California, and
|
||||
// reading the ids back makes that a one-word diagnosis rather than a
|
||||
// twenty-minute one. `activeBoard` is best-effort: the board tab strip
|
||||
// is chrome and may not exist.
|
||||
views: [...document.querySelectorAll("#chapters .chapter")].map((node) => node.getAttribute("data-view")),
|
||||
activeBoard: document.querySelector("[data-board][aria-pressed='true']")?.getAttribute("data-board") ?? null,
|
||||
enter: document.getElementById("enter")?.textContent?.trim() ?? null,
|
||||
})).catch(() => null);
|
||||
throw new Error(`scene readiness timed out: ${JSON.stringify({ state, consoleErrors, requests: requestLog.slice(before) })}`, { cause: error });
|
||||
|
||||
Reference in New Issue
Block a user