perf(ratchet): raise the viewer entry-JS ceiling for #10880 and #10867 together

Closed
LO
9d ago
+3-3

Raises the viewer-entry-js-bytes ceiling to the size main will measure once #10880 and #10867 have both merged. Maintainer decision.

Why

  • #11038 set the ceiling to main at a50001da9a (2,002,030 bytes; allowed 2,004,032 with the 0.10% band).
  • Two queued PRs each fit that band alone, but not together:
    • #10880 (released-geometry measurement readback) adds about 1,460 bytes. Its readback logic is already lazy; only a small released-scene check plus one call per measure handler stays eager.
    • #10867 (type visibility on the GPU) adds about 1,820 bytes. Its type-hidden index is already lazy; what stays eager is camera-framing and streaming-bounds code that runs while a model loads (robustFitBoundsAccumulator, useFilteredGeometry, streamingCompletionBounds, streamingBounds; attributed through the entry chunk's sourcemap).
  • Measured together: main (2d54af0de6) + #10880 (c88f1014b6) + #10867 (9558b27781), built on the fleet with pnpm build:wasm && pnpm build:e2e, then scripts/perf-ratchet/measure-bundle.mjs: 2,005,258 bytes. That is 1,226 bytes above the current band.

What was tried first

Lazy-loading: #10880 already moved its readback to a lazy chunk (+2,053 → +807 bytes from its own code). Moving #10867's remaining eager code would push camera-framing work behind an await on the load path of the first frame, which is a behaviour change for a large PR whose owner is away.

Change

  • ceiling: 2,002,030 → 2,005,258 (measured with both PRs merged).
  • provenance: the combined measurement commit 4684158310 (on the temporary branch tmp/measure-entry-10880-10867, deleted once both PRs merge), measured 2026-11-20 22:40 UTC.
  • tolerance unchanged (relative 0.001).
  • perf-ratchet.mjs check --measured <combined measurement> passes.

Queue order: #10880, then this, then #10867. If #10867 does not merge, the daily lowering job pulls the ceiling back toward main. The same measurement shows viewer-eager-js-bytes at 13,391,632, 73,708 below its ceiling.

šŸ¤– Generated with Claude Code