Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Dec 8, 2025

Related issue: -

Description

The PR makes sure the WebGL 2 backend of WebGPURenderer consistently uses state.enable() and state.disable() to enable/disable WebGL features. This ensures the engine does not miss potential state cache hits.

@Mugen87 Mugen87 added this to the r182 milestone Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 350.9
83.23
350.9
83.23
+0 B
+0 B
WebGPU 616.15
171.03
616.16
171.02
+15 B
-7 B
WebGPU Nodes 614.75
170.76
614.77
170.76
+15 B
-9 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 483.14
118.07
483.14
118.07
+0 B
+0 B
WebGPU 686.99
186.62
687.01
186.62
+15 B
-4 B
WebGPU Nodes 636.83
173.84
636.85
173.83
+15 B
-5 B

@Mugen87 Mugen87 merged commit 8487613 into mrdoob:dev Dec 8, 2025
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.

1 participant