Skip to content

RenderObject: Introduce getGeometryCacheKey()#29465

Merged
sunag merged 3 commits intomrdoob:devfrom
sunag:dev-fix-ro
Sep 22, 2024
Merged

RenderObject: Introduce getGeometryCacheKey()#29465
sunag merged 3 commits intomrdoob:devfrom
sunag:dev-fix-ro

Conversation

@sunag
Copy link
Copy Markdown
Collaborator

@sunag sunag commented Sep 22, 2024

Related issue: #29427 (comment)

Description

This PR maintains the material/pipeline creation fix related to PR #29427 and also preserves previous performance by reusing a geometry signature.

@github-actions
Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 687.32
170.19
687.32
170.19
+0 B
+0 B
WebGPU 835.36
224.03
835.97
224.07
+614 B
+46 B
WebGPU Nodes 834.87
223.9
835.48
223.95
+614 B
+49 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 463.24
111.86
463.24
111.86
+0 B
+0 B
WebGPU 531.77
143.36
532.38
143.56
+614 B
+198 B
WebGPU Nodes 488.43
133.22
489.04
133.42
+614 B
+202 B

@sunag sunag marked this pull request as ready for review September 22, 2024 17:06
@sunag sunag added this to the r169 milestone Sep 22, 2024
@sunag sunag merged commit 20ec736 into mrdoob:dev Sep 22, 2024
@sunag sunag deleted the dev-fix-ro branch September 22, 2024 17:07
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