Skip to content

Conversation

cmhhelgeson
Copy link
Contributor

@cmhhelgeson cmhhelgeson commented Apr 7, 2025

Fixed #30882.

Description

Modifies the instanceCount behavior to acknowledge when the user sets object.count to 0.

@cmhhelgeson cmhhelgeson changed the title WebGPURenderer - Disable Renderer when object.count = 0 WebGPURenderer - Disable Draw Call when object.count = 0 Apr 7, 2025
Copy link

github-actions bot commented Apr 7, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.49
78.38
336.49
78.38
+0 B
+0 B
WebGPU 542.05
150.14
542.09
150.14
+35 B
+3 B
WebGPU Nodes 541.52
150.03
541.55
150.04
+35 B
+2 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.42
112.22
465.42
112.22
+0 B
+0 B
WebGPU 614.9
166.18
614.93
166.19
+35 B
+3 B
WebGPU Nodes 569.88
155.59
569.92
155.59
+35 B
+6 B

@cmhhelgeson cmhhelgeson marked this pull request as draft April 7, 2025 01:20
@cmhhelgeson cmhhelgeson marked this pull request as ready for review April 7, 2025 01:31
@Mugen87 Mugen87 added this to the r176 milestone Apr 7, 2025
@Mugen87 Mugen87 merged commit d0d0e1d into mrdoob:dev Apr 7, 2025
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.

THREE.Sprite() still renders when object.count = 0
2 participants