Skip to content

Renderer - Properly Delete ComputeNode Bindings in Dispose#31832

Merged
Mugen87 merged 2 commits intomrdoob:devfrom
cmhhelgeson:bindings_delete_for_compute
Sep 8, 2025
Merged

Renderer - Properly Delete ComputeNode Bindings in Dispose#31832
Mugen87 merged 2 commits intomrdoob:devfrom
cmhhelgeson:bindings_delete_for_compute

Conversation

@cmhhelgeson
Copy link
Copy Markdown
Contributor

Description

The original dispose function wasn't doing anything on the bindings object because the Bindings.getForCompute DataMap only sets BindGroup objects on its map and not ComputeNode objects. Aligning the delete functionality with the get functionality will actually delete the Bind Group.

@cmhhelgeson cmhhelgeson changed the title Renderer - Properly Delete Compute Bindings Renderer - Properly Delete ComputeNode Bindings in Dispose Sep 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 5, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.24
79.14
338.24
79.14
+0 B
+0 B
WebGPU 579.46
160.11
579.56
160.13
+107 B
+13 B
WebGPU Nodes 578.07
159.87
578.17
159.88
+107 B
+13 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 469.83
113.84
469.83
113.84
+0 B
+0 B
WebGPU 649.15
175.76
649.26
175.77
+107 B
+14 B
WebGPU Nodes 603.27
164.93
603.37
164.94
+107 B
+17 B

Comment thread src/renderers/common/Bindings.js Outdated
@Mugen87 Mugen87 added this to the r181 milestone Sep 6, 2025
@Mugen87 Mugen87 merged commit 1892468 into mrdoob:dev Sep 8, 2025
9 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.

2 participants