Skip to content

TSL: Simplify expression output #30691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

RenaudRohlinger
Copy link
Collaborator

Description
We don't need the extra () in ExpressionNode.

With this PR: array[ u32( ( i ) ) ] -> array[ u32( i ) ].

Before:
Screenshot 2025-03-09 at 18 27 22
After:
Screenshot 2025-03-09 at 18 28 09

This contribution is funded by Utsubo

Copy link

github-actions bot commented Mar 9, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.02
78.26
336.02
78.26
+0 B
+0 B
WebGPU 523.98
145.48
523.97
145.48
-9 B
-2 B
WebGPU Nodes 523.45
145.37
523.44
145.37
-9 B
-1 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.06
112.14
465.06
112.14
+0 B
+0 B
WebGPU 594.38
161.07
594.37
161.07
-9 B
-4 B
WebGPU Nodes 549.51
150.51
549.5
150.51
-9 B
-2 B

@RenaudRohlinger RenaudRohlinger added this to the r175 milestone Mar 10, 2025
@sunag sunag merged commit 382d67a into mrdoob:dev Mar 11, 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.

2 participants