Skip to content
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

nodeBuilder: Add abstract reference for buildFunctionCode #30712

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

s-rigaud
Copy link
Contributor

Description

this.buildFunctionCode is referenced inside NodeBuilder.buildFunctionNode() and defined in both subclasses so an abstract reference could be nice.

Copy link

📦 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.99
145.48
524.05
145.49
+55 B
+7 B
WebGPU Nodes 523.46
145.38
523.51
145.38
+55 B
+3 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.08
594.43
161.08
+55 B
+3 B
WebGPU Nodes 549.5
150.51
549.55
150.52
+55 B
+3 B

@Mugen87 Mugen87 merged commit 43acb6e into mrdoob:dev Mar 10, 2025
11 of 12 checks passed
@Mugen87 Mugen87 added this to the r175 milestone Mar 10, 2025
@s-rigaud s-rigaud deleted the nodebuilder-add-buildfunctioncode-ref branch March 12, 2025 14:01
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