Visitar URL original
Texture: Clarify `addUpdateRange()` units and limitations. by Richman-Tan · Pull Request #35281 · mrdoob/three.js · GitHub
Skip to content

Texture: Clarify addUpdateRange() units and limitations. - #35281

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
Richman-Tan:docs/texture-update-ranges
Oct 30, 2026
Merged

Mugen87 merged 2 commits into
mrdoob:devfrom
Richman-Tan:docs/texture-update-ranges

Conversation

@Richman-Tan

Copy link
Copy Markdown
Contributor

Related issue: #32469

Description

Updates the Texture.addUpdateRange() docs as suggested in #32469. They now say that start and count are counted in elements of the data array, that update ranges only work with RGBAFormat, and that each range has to stay within one row. I tested the last point in Chrome: a range that crosses a row boundary uploads nothing, while one range per row works. I also reworded the updateRanges description, since the old "first 3 rows" example wouldn't work as a single range.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

📦 Bundle size

Full ESM build including core, minified and gzipped.

Before After Diff
Core 395.49
103.40
395.49
103.40
+0 B
+0 B
WebGL 783.57
195.59
783.57
195.59
+0 B
+0 B
WebGPU 1119.10
301.03
1119.10
301.03
+0 B
+0 B
WebGPU Nodes 1117.05
300.66
1117.05
300.66
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 520.08
125.02
520.08
125.02
+0 B
+0 B
WebGPU 793.19
212.45
793.19
212.45
+0 B
+0 B
WebGPU Nodes 739.28
198.97
739.28
198.97
+0 B
+0 B

@Mugen87 Mugen87 added this to the r188 milestone Oct 30, 2026

@Mugen87 Mugen87 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did some minor clean up to avoid redundancies.

@Mugen87
Mugen87 merged commit e6b4d32 into mrdoob:dev Oct 30, 2026
8 of 9 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.

2 participants