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

WebGPURenderer: Added basic three.webgpu.nodes.js #29273

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Aug 30, 2024

Related issue: #28650, #28328

Description

Added a new three.webgpu.nodes.js build and BasicNodeLibrary without default Materials from library. This is an early version, it is only compatible with NodeMaterials but will be compatible with standard materials after #28328.

@sunag sunag added this to the r169 milestone Aug 30, 2024
Copy link

📦 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 818.7 kB
221.3 kB
818.6 kB
221.3 kB
-81 B
+8 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 564.9 kB
153.4 kB
564.8 kB
153.4 kB
-81 B
-71 B

@sunag sunag marked this pull request as ready for review August 30, 2024 16:57
@sunag sunag merged commit fe32019 into mrdoob:dev Aug 30, 2024
12 checks passed
@sunag sunag deleted the dev-tree-shaking-2 branch August 30, 2024 21:19
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