Skip to content

WebGPURenderer: Use correct invalidation array in WebGL backend.#31255

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
cabanier:invalidationarray
Jun 12, 2025
Merged

WebGPURenderer: Use correct invalidation array in WebGL backend.#31255
Mugen87 merged 1 commit into
mrdoob:devfrom
cabanier:invalidationarray

Conversation

@cabanier

Copy link
Copy Markdown
Contributor

We weren't setting up the invalidation array correctly. The depth style was added too many times when there were multiple render targets.

We also weren't passing the invalidation array at the correct time yet. It should be used after the renderbuffers are re-attached.

@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 337.54
78.73
337.54
78.73
+0 B
+0 B
WebGPU 555.33
153.71
555.14
153.68
-187 B
-24 B
WebGPU Nodes 554.68
153.55
554.49
153.53
-187 B
-24 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 468.74
113.38
468.74
113.38
+0 B
+0 B
WebGPU 630.33
170.47
630.15
170.44
-187 B
-25 B
WebGPU Nodes 585.18
159.81
585
159.78
-187 B
-25 B

@Mugen87 Mugen87 added this to the r178 milestone Jun 12, 2025
@Mugen87 Mugen87 changed the title use correct invalidation array WebGPURenderer: Use correct invalidation array in WebGL backend. Jun 12, 2025
@Mugen87 Mugen87 merged commit fbed084 into mrdoob:dev Jun 12, 2025
12 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