Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 8, 2025

Fixed #29488.

Description

The triangles rendered by BatchedMesh are now correctly reported for both the WebGPU and WebGL backend.

WebGLBufferRenderer used the Info.update() in the wrong way by default. The method has three parameters, not four.

Copy link

github-actions bot commented Feb 8, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.12
78.22
336.12
78.22
+0 B
+0 B
WebGPU 517.53
143.77
517.54
143.78
+11 B
+5 B
WebGPU Nodes 517
143.66
517.01
143.66
+11 B
+6 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.17
112.09
465.17
112.09
+0 B
+0 B
WebGPU 589.43
159.85
589.44
159.86
+11 B
+7 B
WebGPU Nodes 544.79
149.41
544.8
149.41
+11 B
+6 B

@Mugen87 Mugen87 added this to the r174 milestone Feb 8, 2025
@Mugen87 Mugen87 merged commit a95ed9e into mrdoob:dev Feb 8, 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.

WebGPURenderer: BatchedMesh triangles aren't reported in renderer.info.render.triangles
1 participant