Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 9, 2025

Follow-up of #30485.

Description

Backend.getClearColor() is now overwritten in both backends to make the clear color computation easier to follow and less error-prone.

Copy link

github-actions bot commented Feb 9, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.28
78.27
336.28
78.27
+0 B
+0 B
WebGPU 517.98
143.9
517.85
143.85
-131 B
-41 B
WebGPU Nodes 517.44
143.78
517.31
143.74
-131 B
-42 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.32
112.14
465.32
112.14
+0 B
+0 B
WebGPU 589.87
160
589.74
160.03
-131 B
+26 B
WebGPU Nodes 545.24
149.54
545.11
149.5
-131 B
-41 B

@Mugen87 Mugen87 merged commit cdd7c6c into mrdoob:dev Feb 9, 2025
12 checks passed
@Mugen87 Mugen87 added this to the r174 milestone Feb 9, 2025
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