Dynamic instance buffer memory leak when streaming real-time coordinate updates in Babylon.js

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 thinInstanceSetBuffer only during initialization or capacity changes.
  • Use a dynamic buffer plus thinInstanceBufferUpdated or 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.