Hey,
I am trying to display a mesh with RealityKit which will be dynamically updated when new data arrives. As per the documentation I used MeshResource.generate(from:) to generate the mesh, remove the old ModelEntity, create a new ModelEntity with the generated mesh and attached the new entity to its anchor. This works for some time but upon closer inspection I discovered a continuous increase in allocated memory eventually exceeding 5gb and crashing my app. I also tried to use MeshResource's replace() to manually replace the models, but to no avail. To me this seems like a memory leak in MeshResource, rendering it unusable for dynamically computed geometries. Has somebody else faced this issue and if yes found a solution?
Cheers
Selecting any option will automatically load the page