Destroy performance is too slow

I’m using Destroy method to delete mesh’s information.

Destroy(obj.GetComponent ());
DestroyImmediate(obj.GetComponent ().mesh);
Destroy(obj.GetComponent ());

but, it is too slow…
i don’t want to remain them in memory.

What is the best method to delete mesh’s information?
i’m using it for Quadtree Logic.


Oh, i didn’t know here is Forum!!
i’m really sorry…
i wrote just my question…sorry

This is just destroying the mesh renderer, not the mesh itself. The mesh will hang around in memory until all references to it are gone and the GC runs.

What exactly is your use case and your problem?

You can always use Mesh.Clear if you simply want the data gone from the mesh. Or you can set MeshRenderer.Mesh to null.