Skip to content

refactor(benchmarks): isolate workload and conformance state - #22

Merged
thejustinwalsh merged 5 commits into
feat/benchmark-workload-hierarchyfrom
feat/benchmark-workload-instances
Aug 4, 2026
Merged

refactor(benchmarks): isolate workload and conformance state#22
thejustinwalsh merged 5 commits into
feat/benchmark-workload-hierarchyfrom
feat/benchmark-workload-instances

Conversation

@thejustinwalsh

@thejustinwalsh thejustinwalsh commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • move Icon Grid virtual-window, recycle, pan/autopan, smoothing, refresh, visibility, and metrics state into a per-mount workload instance
  • explicitly initialize the shared scene transform for every workload mount so outgoing marquee/pan state cannot pollute the next workload
  • extract Main/Presentation composition, runtime control binding, benchmark surface chrome, and bake progress into named React modules
  • route MTSDF and Slug sampling/source-outline targets through a common borrowed-renderer conformance session while retaining renderer-private resources behind adapters
  • split complete MTSDF artifact authentication into per-artifact tests without weakening byte, hash, GLB, glyph, page, or texture-allocation assertions

Evidence

  • mise exec -- pnpm benchmarks:check
    • 53 test files / 301 tests
    • TypeScript, OXLint, Oxfmt, script tests, size gates, and production build passed
  • mise exec -- pnpm benchmarks:check:react-doctor
    • React Doctor 0.7.2 reported no issues
  • mise exec -- pnpm --filter @pmndrs/text-benchmarks test:presentation-workloads
    • all 42 Bitmap/MTSDF/Slug × WebGPU/WebGL2 × seven-workload cells rendered visible pixels
    • exactly one renderer remained alive per lane
    • the first run exposed and distinguished Text Ladder scene-transform pollution; the corrected rerun passed every lane
  • mise exec -- pnpm --filter @pmndrs/text-benchmarks test:headless
    • all 19 isolated conformance scenarios passed
    • MTSDF/Slug sampling and source-outline targets passed through the new session adapters
  • mise exec -- pnpm docs:check
    • OKF v0.2: 0 errors, 0 warnings

Boundaries

  • The route host still owns renderer, canvas, RAF, GPU timer, font transactions, generic Text readiness/attachment/disposal, and telemetry history.
  • Raster adapters forward the exact borrowed renderer and abort signal; they do not expose private raster resources or create a parallel renderer.
  • Workload modules remain app-private public-API examples; no package API was added.

Stacked on #21.

@thejustinwalsh thejustinwalsh changed the title feat/benchmark workload instances refactor(benchmarks): isolate workload and conformance state Aug 3, 2026
@thejustinwalsh
thejustinwalsh marked this pull request as ready for review August 3, 2026 15:57
@thejustinwalsh
thejustinwalsh force-pushed the feat/benchmark-workload-instances branch from a91d220 to f79e347 Compare August 4, 2026 01:44
@thejustinwalsh
thejustinwalsh merged commit 5b9b4a3 into main Aug 4, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant