Skip to content

TSL: Fix update of previous instance matrix data.#34107

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
Mugen87:dev2
Jul 24, 2026
Merged

TSL: Fix update of previous instance matrix data.#34107
Mugen87 merged 2 commits into
mrdoob:devfrom
Mugen87:dev2

Conversation

@Mugen87

@Mugen87 Mugen87 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #34101

Description

Follow-up of #34101. It turns out when Instance.js uses the non-UBO path for representing the instance matrix data, the update of previous instance matrix data is broken. That's because storage and interleaved attribute data require needsUpdate set to true/version bump (in the interleaved case the instance of InstancedInterleavedBuffer).

@Mugen87 Mugen87 added this to the r186 milestone Jul 24, 2026
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 365.88
86.71
365.88
86.71
+0 B
+0 B
WebGPU 683.22
189.02
683.3
189.04
+83 B
+18 B
WebGPU Nodes 681.21
188.7
681.29
188.72
+83 B
+18 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 510.55
124.02
510.55
124.02
+0 B
+0 B
WebGPU 761.59
205.07
761.67
205.09
+83 B
+15 B
WebGPU Nodes 711.09
192.5
711.17
192.51
+83 B
+14 B

@Mugen87
Mugen87 merged commit 27e70dd into mrdoob:dev Jul 24, 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.

1 participant