Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 29, 2025

Fixed #31776.

Description

Render objects using instancing are not allowed to share the same node builder state. There is already code in RenderObject that ensures this for 3D objects using the count property but not for InstancedMesh with an instance count of 1. Granted, this is an edge case but it still should be fixed.

@Mugen87 Mugen87 added this to the r180 milestone Aug 29, 2025
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.91
79.11
338.91
79.11
+0 B
+0 B
WebGPU 579.35
159.66
579.37
159.66
+21 B
+8 B
WebGPU Nodes 577.96
159.41
577.98
159.42
+21 B
+7 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 470.78
113.9
470.78
113.9
+0 B
+0 B
WebGPU 649.5
175.53
649.52
175.53
+21 B
+8 B
WebGPU Nodes 603.6
164.67
603.62
164.68
+21 B
+9 B

@Mugen87 Mugen87 merged commit c08ca65 into mrdoob:dev Aug 29, 2025
9 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 + NodeMaterial: Instance matrices not applied when using multiple InstancedMesh
1 participant