Repository navigation
Conversation
|
pkg.pr.new packages benchmark commit |
3894880 to
9ee6a3f
Compare
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 [0.60, 1.31, 2.83, 4.00, 4.41, 7.03, 16.42, 17.10]
line [0.55, 1.19, 2.69, 4.52, 4.62, 6.81, 16.49, 19.06]
line [0.51, 1.06, 2.44, 4.23, 4.76, 6.56, 14.65, 15.66]
---
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.16, 0.32, 0.45, 0.55, 0.72, 0.77, 0.89, 1.09]
line [0.17, 0.33, 0.44, 0.50, 0.66, 0.70, 0.87, 0.91]
line [0.15, 0.30, 0.40, 0.49, 0.61, 0.61, 0.74, 0.78]
---
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 [0.70, 1.54, 2.78, 4.58, 9.16, 18.93, 39.45, 82.64]
line [0.70, 1.43, 2.66, 4.43, 9.36, 18.98, 40.10, 80.88]
line [0.62, 1.56, 2.70, 4.40, 7.84, 16.83, 35.22, 72.84]
|
Bundle size comparison (
|
| 🟢 Decreased | ➖ Unchanged | 🔴 Increased | ❔ Unknown |
|---|---|---|---|
| 0 | 360 | 0 | 0 |
No notable changes.
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.
407a03a to
c274e3b
Compare
c274e3b to
40ef3d3
Compare
073bfec to
d90f02b
Compare
d90f02b to
a8dd76c
Compare
a8dd76c to
c9de4c7
Compare
0ee067b to
2ad434a
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Touch handoff breaks pinch zoom, and drag cleanup leaves canvas event handlers active.
2 open issues
What changed in this PR
Adds an interactive cloth simulation to the documentation examples, demonstrating how @typegpu/geometry meshes can be animated directly on the GPU.
Changes:
- Adds cloth picking, spring-force simulation, and normal updates.
- Integrates rendering, dragging, camera controls, and simulation settings.
- Adds example metadata, interaction instructions, and a shader-resolution test.
| File | Description |
|---|---|
| apps/typegpu-docs/tests/individual-example-tests/cloth-mesh.test.ts | Tests shader resolution for picking, simulation, and rendering. |
| apps/typegpu-docs/src/examples/simulation/cloth-mesh/meta.json | Registers the simulation in the example gallery. |
| apps/typegpu-docs/src/examples/simulation/cloth-mesh/index.ts | Connects GPU pipelines, rendering, camera, and controls. |
| apps/typegpu-docs/src/examples/simulation/cloth-mesh/index.html | Provides the canvas and interaction instructions. |
| apps/typegpu-docs/src/examples/simulation/cloth-mesh/drag.ts | Implements pointer-based cloth dragging. |
| apps/typegpu-docs/src/examples/simulation/cloth-mesh/cloth.ts | Defines mesh data and cloth compute shaders. |
Review effort: Balanced
There was a problem hiding this comment.
Important
Two interaction issues remain in the drag helper: pinch-to-zoom is broken once a second touch lands, and cleanup() leaves its canvas listeners attached.
Reviewed changes
- Interactive cloth example — adds
cloth-meshwith a baked@typegpu/geometrysheet, GPU spring simulation, screen-space grab picking, and normal recomputation (cloth.ts). - Pointer dragging —
drag.tsmaps pointer events to NDC, captures the pointer, and hands multi-touch off to the orbit camera. - Wiring & controls —
index.tsbuilds the render/compute pipelines, patches the scene uniform, and exposesWind/Stiffness/Pause/Reset. - Docs metadata & UI —
meta.json, theindex.htmlcontrols help, and a thumbnail register the example in the gallery. - Test — a jsdom smoke test drives a frame and a
pointerdown, asserting 8 shader modules and theatomicMinpick shader.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
2ad434a to
1c246a8
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Incremental re-review of the commits pushed after the prior pullfrog review (2ad434a → 1c246a8). The branch was rebased onto an advanced docs/geometry, but the example's own files are otherwise byte-identical to the prior head (index.ts now uses the shared setupOrbitCamera from the base branch). The only net change is in drag.ts:
- Stopped releasing the primary pointer's capture on grab handoff —
release()no longer callscanvas.releasePointerCapture, so when a second touch ends the cloth grab the primary pointer stays captured and the orbit camera keeps both fingers, restoring pinch zoom. The normal end path is unaffected because the browser implicitly releases capture onpointerup/pointercancel.
Verified locally: the cloth-mesh jsdom test passes and pnpm run --filter typegpu-docs test:types reports 0 errors.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
548eacc to
6999fbd
Compare
6999fbd to
cc91603
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Incremental re-review of the only authored delta since the prior pullfrog review (6999fbd → cc91603). The branch was rebased onto an advanced docs/geometry, and the example's files are otherwise unchanged:
- Switched to the stable command encoder —
index.tsreplacesroot['~unstable'].createCommandEncoder()withroot.createCommandEncoder(), the non-deprecated equivalent (TgpuCommandEncoder, samebeginComputePass/submit/.with(encoder)surface). No~unstableaccess remains incloth-mesh/.
Both prior pullfrog threads (drag.ts pinch handoff, cleanup() listeners) are resolved.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
cc91603 to
cd62e3a
Compare
cd62e3a to
75de78b
Compare
75de78b to
25f1fdf
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Incremental re-review of the committed delta since the prior pullfrog review (75de78b → 25f1fdf): a single commit porting the example to the shared canvas auto-resizer.
- Replaced the manual resize observer with
common.attachAutoResizer—index.tsnow delegates canvas backing-store sizing to the shared helper and recreates the depth texture from itsonResizecallback, matching therendering/mesh-patchespattern; norequestRender()is needed because the example already runs a continuousrequestAnimationFrameloop. - Switched the canvas to the standard gallery classes —
index.htmldrops the inertdata-fit-to-containerattribute in favor ofw-full h-full, the declaration used by the rest of the examples.
Verified locally: the cloth-mesh jsdom test passes, and tsc --noEmit on the docs app reports no new errors.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
25f1fdf to
c4729d6
Compare
c4729d6 to
99d3153
Compare
99d3153 to
149a457
Compare
149a457 to
8626b9f
Compare


No description provided.