Skip to content

Replacing an attribute of a geometry instanced by another new attribute with a superior length break the renderer #30168

@Samsy

Description

@Samsy

Description

On previous version of Three.JS, ( r162 havnt tested between then and now ) ,we were able to replace an entire instancedgeometry attribute with a new length and set the instanceCount to a superior value

This is a valuable feature for performances if you play with huge dynamic instanced geometry that increments count over time and allows to first allocate a smaller buffer then grow with a safe multiple to limit the size of the buffer

But this also limits flexibility of building geometries by a lot

In both WebGL and WebGPU back end it now breaks the renderer :

Screenshot 2024-12-19 at 15 02 09

Look at the switchArray function

Live example

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions