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

BatchedMesh: Fix bug in deleteGeometry(). #30304

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

jonathanzopes
Copy link
Contributor

Related forum discussion thread: https://discourse.threejs.org/t/batchedmesh-deleting-instances-and-geometry/76193/1

Description

Verify if instances are still active, before deleting them within deleteGeometry.

CC @gkjohnson

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.52
79.1
339.52
79.1
+0 B
+0 B
WebGPU 490.8
136.38
490.8
136.38
+0 B
+0 B
WebGPU Nodes 490.26
136.27
490.26
136.27
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.41
112.15
465.41
112.15
+0 B
+0 B
WebGPU 561.37
152.09
561.37
152.09
+0 B
+0 B
WebGPU Nodes 516.76
141.66
516.76
141.66
+0 B
+0 B

@gkjohnson
Copy link
Collaborator

Thanks! I believe this was introduced in #29790 when functions were modified to throw errors rather than return status.

@gkjohnson gkjohnson merged commit 6dd8854 into mrdoob:dev Jan 13, 2025
12 checks passed
@Mugen87 Mugen87 added this to the r173 milestone Jan 13, 2025
@Mugen87 Mugen87 changed the title BatchedMesh: Fix bug in deleteGeometry BatchedMesh: Fix bug in deleteGeometry(). Jan 13, 2025
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.

3 participants