Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Dec 2, 2025

Related issue: #32436

Description

Added a Map for cacheKey-based lookups in acquireProgram, reducing time complexity from O(N) to O(1). The programs array is retained for resource monitoring via renderer.info.

@mrdoob mrdoob added this to the r182 milestone Dec 2, 2025
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 350.28
83
350.26
83.01
-25 B
+4 B
WebGPU 616.03
171
616.03
171
+0 B
+0 B
WebGPU Nodes 614.64
170.74
614.64
170.74
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 482.33
117.81
482.3
117.81
-25 B
-2 B
WebGPU 687.42
186.76
687.42
186.76
+0 B
+0 B
WebGPU Nodes 637.26
173.94
637.26
173.94
+0 B
+0 B

@mrdoob mrdoob merged commit 5e431fd into dev Dec 2, 2025
10 checks passed
@mrdoob mrdoob deleted the webgl-cleanup branch December 2, 2025 22:05
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.

3 participants