Skip to content

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Mar 24, 2025

Description

Deprecated modInt() to use mod() instead, making the syntax simpler and if you use mod( int() ) the optimization is done automatically.

@sunag sunag added this to the r175 milestone Mar 24, 2025
@github-actions
Copy link

github-actions bot commented Mar 24, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.08
78.29
336.08
78.29
+0 B
+0 B
WebGPU 530.37
147.37
530.63
147.4
+266 B
+23 B
WebGPU Nodes 529.83
147.27
530.1
147.29
+266 B
+21 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.15
112.18
465.15
112.18
+0 B
+0 B
WebGPU 602
163.34
602.31
163.4
+302 B
+65 B
WebGPU Nodes 557.04
152.86
557.35
152.84
+302 B
-26 B

@sunag sunag marked this pull request as ready for review March 24, 2025 20:41
@sunag sunag changed the title TSL: Deprecated modInt() TSL: Deprecated modInt() and minor fixes Mar 24, 2025
@sunag sunag merged commit 20b9cbb into mrdoob:dev Mar 24, 2025
12 checks passed
@sunag sunag deleted the dev-improve-mod branch March 24, 2025 21:29
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