Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jan 28, 2025

Related issue: -

Description

The PR makes sure that webgpu_* examples that only support WebGPU use WebGPU.isAvailable() to report a controlled error on WebGL 2 only browsers.

The PR also removes a debug log from GLSLNodeBuilder.

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.27
78.29
336.27
78.29
+0 B
+0 B
WebGPU 516.74
143.47
516.71
143.46
-33 B
-10 B
WebGPU Nodes 516.2
143.37
516.17
143.36
-33 B
-9 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.25
112.13
465.25
112.13
+0 B
+0 B
WebGPU 588.75
159.64
588.71
159.63
-33 B
-12 B
WebGPU Nodes 544.13
149.2
544.1
149.19
-33 B
-10 B

@Mugen87 Mugen87 added this to the r173 milestone Jan 28, 2025
@Mugen87 Mugen87 merged commit 0b79d6f into mrdoob:dev Jan 28, 2025
12 checks passed
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