Skip to content

WebGPURenderer: Clear texture update ranges after upload. - #34919

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
MikeFernandez-Pro:webgpu-texture-update-ranges
Oct 8, 2026
Merged

Mugen87 merged 2 commits into
mrdoob:devfrom
MikeFernandez-Pro:webgpu-texture-update-ranges

Conversation

@MikeFernandez-Pro

Copy link
Copy Markdown
Contributor

Related issue: -

Description

WebGPURenderer ignores texture.updateRanges and always uploads the whole texture, but it never clears the ranges either. So when an app calls addUpdateRange() on every update, the array keeps growing.

This PR clears the ranges after each upload, like WebGLRenderer does.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

📦 Bundle size

Full ESM build including core, minified and gzipped.

Before After Diff
Core 390.53
102.46
390.53
102.46
+0 B
+0 B
WebGL 776.74
193.95
776.74
193.95
+0 B
+0 B
WebGPU 1089.40
293.66
1089.40
293.66
+0 B
+0 B
WebGPU Nodes 1087.35
293.31
1087.35
293.31
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 518.26
124.50
518.26
124.50
+0 B
+0 B
WebGPU 769.23
206.22
769.23
206.22
+0 B
+0 B
WebGPU Nodes 716.49
193.00
716.49
193.00
+0 B
+0 B

@Mugen87
Mugen87 merged commit b3cbe43 into mrdoob:dev Oct 8, 2026
8 of 9 checks passed
@Mugen87 Mugen87 added this to the r187 milestone Oct 8, 2026
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