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: Sort objects in clip space #29271

Merged

Conversation

RenaudRohlinger
Copy link
Collaborator

Related issue: #28571

Description
Aligns with WebGLRenderer sorting objects in clip space.

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger 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.7 kB
221.3 kB
+0 B
-2 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.9 kB
153.4 kB
+0 B
+0 B

@RenaudRohlinger RenaudRohlinger merged commit 97b5d42 into mrdoob:dev Aug 30, 2024
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.

2 participants