ReadonlychunkedStream large orderings in slices with upload back-pressure
(element-storage.ts, issue #715). Classic WebGL only: the back-pressure
waits on the attribute's onUploadCallback, which neither WebGPU backend
fires, so the WebGPU backends write an ordering whole.
ReadonlyadoptAdopt the worker's capacity-sized ordering buffer as the attribute's array instead of copying it. Only for a whole-ordering write: a sliced stream copies slice by slice.
ReadonlyusageBuffer usage for the ordering pair. StaticDrawUsage on both WebGPU
backends: three's shared attribute cache (renderers/common/Attributes.js)
re-uploads a DynamicDrawUsage attribute on every render even when its
version is unchanged, which cost a full writeBuffer of both buffers per
node per frame (80 MB/frame at 10M elements, #2944). Every buffer three
creates there carries COPY_DST, so a static attribute still uploads on each
version bump. Classic WebGL keeps DynamicDrawUsage, where usage is only
the bufferData hint.
How a depth-sort ordering reaches the
aSortedIndex/aSortedIndexBpair.