Skip to content

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Aug 22, 2025

Fixes #31644

Description

It's a simple fix, but it should fix the memory leak issue regarding the first stack.

Before Now
image image

@sunag sunag added this to the r180 milestone Aug 22, 2025
@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.91
79.1
338.91
79.1
+0 B
+0 B
WebGPU 577.1
159.18
577.1
159.18
-2 B
+4 B
WebGPU Nodes 575.71
158.93
575.71
158.94
-2 B
+4 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 470.7
113.91
470.7
113.91
+0 B
+0 B
WebGPU 647.66
175.14
647.65
175.14
-2 B
+2 B
WebGPU Nodes 601.76
164.31
601.76
164.31
-2 B
+2 B

@sunag sunag marked this pull request as ready for review August 23, 2025 03:11
@sunag sunag merged commit a3c3c26 into mrdoob:dev Aug 23, 2025
9 checks passed
@sunag sunag deleted the dev-fix-stack branch August 23, 2025 03:23
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.

TSL: JS Memory leak caused by StackNode in currentStack

1 participant