Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 1, 2025

Related issue: -

Description

I've noticed a strange bug in TRAA when testing static scenes. Turns out the initial value of previousModelWorldMatrix in VelocityNode is incorrect. When there is no motion in the scene, the velocity should be 0. Before this PR, motion was computed since the previous and current world matrix values didn't match.

Copy link

github-actions bot commented Apr 1, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.36
78.34
336.36
78.34
+0 B
+0 B
WebGPU 532.94
148.11
532.97
148.11
+25 B
+3 B
WebGPU Nodes 532.41
148
532.43
148.01
+25 B
+3 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.37
112.21
465.37
112.21
+0 B
+0 B
WebGPU 604.58
164.08
604.58
164.08
+0 B
+0 B
WebGPU Nodes 559.57
153.53
559.57
153.53
+0 B
+0 B

@Mugen87 Mugen87 merged commit f1ecf66 into mrdoob:dev Apr 1, 2025
12 checks passed
@Mugen87 Mugen87 added this to the r176 milestone Apr 1, 2025
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