Finish an update for draw: the indexed draw range is always the
2-triangle base quad (6 indices) while instanceCount carries the number
of elements, and THREE's cached _maxInstanceCount is forced to
recompute.
Called ONLY after the texel write succeeds — never at acquire time.
Bumping instanceCount before the write would let a throwing write draw
the new count over stale/zero texels (a grown reuse would render ~N
duplicates of element 0 until the next update).
Finish an update for draw: the indexed draw range is always the 2-triangle base quad (6 indices) while
instanceCountcarries the number of elements, and THREE's cached_maxInstanceCountis forced to recompute.Called ONLY after the texel write succeeds — never at acquire time. Bumping
instanceCountbefore the write would let a throwing write draw the new count over stale/zero texels (a grown reuse would render ~N duplicates of element 0 until the next update).