It may be somehow related to Thin Instance vertex buffer memory leak (thinInstanceSetBuffer) - #5 by sebavan
Which Babylon version do you use?
Some other tips:
- Call
thinInstanceSetBufferonly during initialization or capacity changes. - Use a dynamic buffer plus
thinInstanceBufferUpdatedor partial updates. - Apply WebSocket state atomically during
onBeforeRenderObservable. - Refresh or conservatively expand thin-instance bounds.
- Render shadow maps every frame while their lights or casters are moving.