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: Fix and improve the dynamic updating of the scene nodes cache #30180

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Dec 21, 2024

Related issue: #30178

Description

The PR fixes changing of shader-related scene properties like scene.fog, scene.environment when changed during the rendering pass using Node.updateBefore(), and also creates a cache layer for the related classes.

@sunag sunag added this to the r172 milestone Dec 21, 2024
@sunag sunag changed the title WebGPURenderer: Fix dynamic change and improve scene nodes cache WebGPURenderer: Fix and improve the dynamic updating of the scene nodes cache Dec 21, 2024
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.4
79.05
339.4
79.05
+0 B
+0 B
WebGPU 487.04
135.09
487.26
135.14
+216 B
+48 B
WebGPU Nodes 486.51
134.99
486.73
135.04
+216 B
+49 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.3
112.11
465.3
112.11
+0 B
+0 B
WebGPU 557.21
150.78
557.42
150.83
+216 B
+44 B
WebGPU Nodes 513.28
140.56
513.5
140.6
+216 B
+41 B

@sunag sunag marked this pull request as ready for review December 21, 2024 15:29
@sunag sunag merged commit 0bdd6d1 into mrdoob:dev Dec 21, 2024
12 checks passed
@sunag sunag deleted the dev-rev-nodes branch December 21, 2024 15:29
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