Skip to content

perf(runtime): optimize scratch-render readbacks - #602

Merged
kubohiroya merged 1 commit into
mainfrom
perf/runtime/scratch-render-readback-context
Aug 15, 2026
Merged

perf(runtime): optimize scratch-render readbacks#602
kubohiroya merged 1 commit into
mainfrom
perf/runtime/scratch-render-readback-context

Conversation

@kubohiroya

Copy link
Copy Markdown
Owner

Closes #564

Depends on:

Summary

  • pin scratch-render to reviewed fork commit 1fa6cc7d23e12aabf8db16e8e3ce400538f44165
  • mark only the Silhouette and TextBubble readback contexts as willReadFrequently
  • patch the same two exact templates in Packager 3.13.0 Plain HTML and zip-one-asset outputs
  • fail closed on Packager template drift; no global Canvas monkey patch
  • expose the audited Packager/fork/upstream contract and regression tests

Verification

  • upstream fork: npm run lint, npm run build
  • targeted Packager tests: 12/12
  • pnpm verify:full
    • Node 1,240/1,240
    • quick E2E 50/50
    • real Chromium 13/13
    • SB3 publication snapshot, lint, format, typecheck, site, npm package smoke
  • samples: Node 34/34, site/tutorial verify, Chromium/WebKit/DSL 4.0 browser suites
  • performance: 2,000 picks median 1.0ms before and after (ratio 1.00)

Rollback

Revert this PR to restore TurboWarp/scratch-render@a67f7c9, revert samples PR #115, and regenerate the Web artifacts. Do not fall back to a Canvas prototype monkey patch.

@kubohiroya
kubohiroya marked this pull request as ready for review August 15, 2026 03:58
@kubohiroya
kubohiroya merged commit 08af7c7 into main Aug 15, 2026
1 check passed
@kubohiroya
kubohiroya deleted the perf/runtime/scratch-render-readback-context branch August 15, 2026 04:07
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.

perf(runtime): Canvas2D readback警告を性能根拠と分離する

1 participant