Skip to content

WebGPURenderer: Fixed disposed PMREM. - #35185

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev3
Oct 23, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev3

Conversation

@Mugen87

@Mugen87 Mugen87 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Fixed #35159.

Description

The PR makes sure disposed PMREMs can be reused in WebGPURenderer.

@sunag We have to think about a different solution for static objects and bundles. There are different kind of disposals static objects might miss and it can't be the solution that we clutter needsRefresh() with more and more checks. I see Object3D.static still as experimental and this feature need to be implemented differently in WebGPURenderer.

Ideally, we can also move the attribute disposal check (#35105) back to equals(). That would require e.g. that static bundle re-records force a FULL refresh somehow.

@Mugen87 Mugen87 added this to the r187 milestone Oct 23, 2026
@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build including core, minified and gzipped.

Before After Diff
Core 394.07
103.14
394.07
103.14
+0 B
+0 B
WebGL 780.47
194.69
780.47
194.69
+0 B
+0 B
WebGPU 1113.20
299.45
1113.41
299.50
+219 B
+48 B
WebGPU Nodes 1111.14
299.09
1111.36
299.14
+219 B
+49 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 518.92
124.66
518.92
124.66
+0 B
+0 B
WebGPU 788.69
211.20
788.91
211.25
+219 B
+52 B
WebGPU Nodes 734.80
197.64
735.02
197.69
+219 B
+49 B

@Mugen87 Mugen87 changed the title WebGPURenderer: Fixed dispoed PMREM. WebGPURenderer: Fixed disposed PMREM. Oct 23, 2026
@Mugen87
Mugen87 merged commit c75dc91 into mrdoob:dev Oct 23, 2026
10 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.

WebGPURenderer: PMREM is not regenerated after the environment texture is disposed.

1 participant