Hello!
It looks like some recent changes to LinesMesh have affected how shaderMaterial is handled. Specifically, the shaderMaterial is no longer disposed automatically when the mesh is disposed.
This leads to a memory leak in BoundingBoxGizmo, which creates and disposes line meshes. Since the associated shaderMaterial isn’t cleaned up, it accumulates over time.
I’m not sure whether this should be fixed in LinesMesh or in BoundingBoxGizmo, but this behavior definitely feels unintended.
You can reproduce the issue in this Playground (check the console logs):
https://playground.babylonjs.com/#SG9ZZB#39