-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Closed
Description
Description
When using WebGPURenderer({ forceWebGL: true }), partial buffer updates via InstancedBufferAttribute.updateRanges appear to be ignored. Calling attribute.clearUpdateRanges(); attribute.addUpdateRange(start, count); attribute.needsUpdate = true; results in the entire attribute buffer being re-uploaded each frame, instead of the specified range (this is true for both backends)
Reproduction steps
In the test example, the buffer is partially updated with a specified range (this can be toggled in the constants above). However, when checking the profiler, it becomes clear that even with the minimal value, the write time does not decrease.
Code
attr.clearUpdateRanges();
attr.addUpdateRange(floatOffset, floats);
attr.needsUpdate = true;
Maybe I am doing something wrong?
Live example
https://jsfiddle.net/1krcs5fh/3/
Screenshots

Version
r179.1
Device
Desktop
Browser
Chrome
OS
Linux