Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builds: three.webgpu.nodes.js -- Remove WebGL2 Fallback #29283

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Sep 1, 2024

Related issue: #28328 (comment)

Description

It's not sure if we need the fallback of WebGL2 for three.webgpu.nodes.js version, maybe user can externally add the WebGLBackend if required? This would be more within the purpose of fully tree-shakeable.

I'll leave it open so we have visibility of tree-shaking as well.

Copy link

github-actions bot commented Sep 1, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 685.4 kB
169.7 kB
685.4 kB
169.7 kB
+0 B
+0 B
WebGPU 821.4 kB
220.7 kB
821.4 kB
220.7 kB
+0 B
+0 B
WebGPU Nodes 821 kB
220.6 kB
763.7 kB
204.8 kB
+419 B
+95 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 462 kB
111.4 kB
462 kB
111.4 kB
+0 B
+0 B
WebGPU 522.1 kB
140.7 kB
522.1 kB
140.7 kB
+0 B
+0 B
WebGPU Nodes 478.8 kB
130.5 kB
419.6 kB
113.9 kB
-102.53 kB
-16.62 kB

@sunag sunag changed the title Builds: three.webgpu.nodes.js -- Removed WebGL2 Fallback Builds: three.webgpu.nodes.js -- Remove WebGL2 Fallback Sep 1, 2024
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