Skip to content

WGSLNodeBuilder: Fix textureDimensions() cache scope#33312

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-fix-cache-td
Apr 2, 2026
Merged

WGSLNodeBuilder: Fix textureDimensions() cache scope#33312
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-fix-cache-td

Conversation

@sunag

@sunag sunag commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

Related issue: #33295

Description

I fixed the cache scope by making the example from the issue work. I still need to review the generated code; it seems the optimizer is not acting correctly.

@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 360.57
85.58
360.57
85.58
+0 B
+0 B
WebGPU 633.99
175.99
633.98
176
-6 B
+3 B
WebGPU Nodes 632.11
175.7
632.1
175.7
-6 B
+3 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 492.88
120.18
492.88
120.18
+0 B
+0 B
WebGPU 706.12
190.93
706.12
190.93
-6 B
+3 B
WebGPU Nodes 655.34
178.29
655.34
178.29
-6 B
-1 B

@sunag sunag marked this pull request as ready for review April 2, 2026 03:30
@sunag sunag merged commit be5aee8 into mrdoob:dev Apr 2, 2026
15 of 16 checks passed
@sunag sunag deleted the dev-fix-cache-td branch April 2, 2026 03:30
@mrdoob mrdoob added this to the r184 milestone Apr 6, 2026
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