Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 16, 2025

Fixed #30937.

Description

The PR makes sure that calling dispose() on a background node triggers a dispose of the background material and geometry.

@Mugen87 Mugen87 added this to the r176 milestone Apr 16, 2025
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.33
78.33
336.33
78.33
+0 B
+0 B
WebGPU 544.36
150.79
544.48
150.86
+122 B
+68 B
WebGPU Nodes 543.71
150.63
543.83
150.7
+122 B
+69 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.48
112.23
465.48
112.23
+0 B
+0 B
WebGPU 618.02
167.09
618.14
167.14
+122 B
+56 B
WebGPU Nodes 572.89
156.43
573.01
156.49
+122 B
+60 B

@Mugen87 Mugen87 merged commit 4be3163 into mrdoob:dev Apr 16, 2025
12 checks passed
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
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.

TSL: Scene.backgroundNode.dispose , not dispose geometry
1 participant