Skip to content

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jul 20, 2025

Related issue: #30849

Description

Introduces a variable intent module, which is a VarNode that is only activated if the Node is assigned. This allows nodes to be assigned without mandatory use of .toVar(). This was added to constant declaration, arithmetic, math and function call(Fn()).

// New
const foo = float( 1 );
floo.assign( 2 );

// Old
const foo = float( 1 ).toVar();
foo.assign( 2 );
  • Introduce VarIntention - 48143a5
  • Move builder.getArrayCount() -> node.getArrayCount() - 65b1b60
  • Add NodeBuilder.flowBuildStage() - d06d498

@sunag sunag added this to the r179 milestone Jul 20, 2025
@sunag sunag mentioned this pull request Jul 20, 2025
12 tasks
Copy link

github-actions bot commented Jul 21, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 337.92
78.83
337.92
78.83
+0 B
+0 B
WebGPU 559.1
154.77
560.13
155.06
+1.04 kB
+284 B
WebGPU Nodes 558.02
154.56
559.06
154.84
+1.04 kB
+284 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 469.19
113.49
469.19
113.49
+0 B
+0 B
WebGPU 634.4
171.77
635.3
171.98
+899 B
+212 B
WebGPU Nodes 589.54
161.08
589.95
161.23
+412 B
+153 B

@sunag sunag marked this pull request as ready for review July 22, 2025 01:16
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