Skip to content

WebGPURenderer: Add individual dispose for CanvasTarget caching#33106

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-individual-dispose
Mar 2, 2026
Merged

WebGPURenderer: Add individual dispose for CanvasTarget caching#33106
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-individual-dispose

Conversation

@sunag

@sunag sunag commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #32690

Description

Allow CanvasTarget to remove cache dependencies individually after canvasTarget.dispose().

@sunag sunag added this to the r184 milestone Mar 2, 2026
@sunag sunag marked this pull request as ready for review March 2, 2026 04:23
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.57
85.37
359.57
85.37
+0 B
+0 B
WebGPU 629.79
174.92
629.85
174.95
+59 B
+33 B
WebGPU Nodes 628.37
174.67
628.43
174.7
+59 B
+32 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 491.31
119.78
491.31
119.78
+0 B
+0 B
WebGPU 703.41
189.92
703.47
189.95
+59 B
+32 B
WebGPU Nodes 652.61
177.31
652.67
177.34
+59 B
+32 B

@sunag sunag merged commit 38331a2 into mrdoob:dev Mar 2, 2026
10 checks passed
@sunag sunag deleted the dev-individual-dispose branch March 2, 2026 04:38
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