Repository navigation
Conversation
|
pkg.pr.new packages benchmark commit |
Resolution Time Benchmark---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [1.11, 2.27, 4.86, 7.05, 8.32, 14.37, 27.76, 29.46]
line [1.11, 2.28, 4.83, 7.16, 8.84, 14.51, 26.60, 27.83]
line [1.05, 2.14, 4.94, 7.21, 8.82, 13.45, 26.07, 26.61]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.31, 0.57, 0.81, 0.93, 1.28, 1.31, 1.65, 1.83]
line [0.33, 0.56, 0.79, 0.94, 1.35, 1.23, 1.50, 1.70]
line [0.37, 0.62, 0.79, 0.93, 1.27, 1.27, 1.49, 1.73]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [1.00, 2.63, 4.57, 8.13, 14.82, 31.84, 64.16, 129.50]
line [1.02, 2.35, 3.77, 7.62, 13.53, 28.92, 62.77, 123.85]
line [0.95, 2.30, 4.20, 7.68, 14.00, 28.86, 60.76, 123.21]
|
Bundle size comparison (
|
| 🟢 Decreased | ➖ Unchanged | 🔴 Increased (max 1.28%) | ❔ Unknown |
|---|---|---|---|
| 0 | 353 | 2 | 1 |
import * as ... in PR vs import * as ... in target (did bundle size increase?):
| Test | tsdown |
|---|---|
| STATIC_common.ts | 56.83 kB ( |
| common_attachAutoResizer.ts | 722 B |
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.
- Make attachAutoResizer more robust (rounding, contentBoxSize shapes, observe() without options, roots without a WebGPU device) - Use explicit closing tags for <canvas> and <video> - Keep the 1:1 aspect ratio in bitonic-sort and sdf-docs-examples - Remove the resizer from log-test - Use integer sizes and destroy stale textures in ripple-cube
- Forward onResize from the Jelly Slider landing example, and make it required for landing examples - Only recreate blur textures in background-segmentation when the video frame size changes
iwoplaza
force-pushed
the
feat/react-use-auto-resizer
branch
from
October 21, 2026 15:32
d72e961 to
dd1a149
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2534.
Changes
useConfigureContextnow usescommon.attachAutoResizerinstead of its ownResizeObserver+devicePixelRatiologic, so the resizing behavior is shared with non-React usage. The shared logic incore/use-configure-context.tsand the React Native resizer are untouched.device.limits.maxTextureDimension2D,box: 'device-pixel-content-box'when supported.maxTextureDimension2Dto the mocked device limits intypegpu-testing-utility(it was missing, which made the clamping produce a 0×0 canvas in tests).Notes
@typegpu/reactdepends ontypegpuviaworkspace:^, andcommon.attachAutoResizeris new, so the minimumtypegpuversion required by@typegpu/reactneeds to be bumped on release.