Skip to content

NodeUtils: Update getAlignmentFromType to use 4-byte elements and add bool type - #33546

Merged
sunag merged 2 commits into
mrdoob:devfrom
sunag:dev-rev-getAlignmentFromType
May 9, 2026
Merged

sunag merged 2 commits into
mrdoob:devfrom
sunag:dev-rev-getAlignmentFromType

Conversation

@sunag

@sunag sunag commented May 9, 2026 •

Copy link
Copy Markdown
Collaborator

Related issue: #33041

Description

  • Use getAlignmentFromType to use 4-byte elements
  • Add bool type
  • Improve NodeUtils docs

/cc @gkjohnson

@sunag sunag added this to the r185 milestone May 9, 2026
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

πŸ“¦ Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 365.32
86.78
365.32
86.78
+0 B
+0 B
WebGPU 656.13
181.29
656.11
181.26
-28 B
-30 B
WebGPU Nodes 654.25
181.01
654.22
180.98
-28 B
-30 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 498.04
121.5
498.04
121.5
+0 B
+0 B
WebGPU 728.22
196.25
728.22
196.25
+0 B
+0 B
WebGPU Nodes 677.43
183.66
677.43
183.66
+0 B
+0 B

@sunag
sunag marked this pull request as ready for review May 9, 2026 02:11
@sunag
sunag merged commit 09893a3 into mrdoob:dev May 9, 2026
9 checks passed
@sunag
sunag deleted the dev-rev-getAlignmentFromType branch May 9, 2026 03:06
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