Huge frame drop problem.

I have a serious performance problem with GC.MarkDependencies.

This happens every time right after destroying a specific mesh object which created at runtime.

(The mesh is made manually with vertices and uvs to draw a custom spline path.)

This also happens when I deactivate the game object instead of destroying it.

Can anyone please help me?

Found what is causing.

The path drawing library was repeatedly calling Resources.UnloadUnusedAssets() in OnDisable().

Funny I have suffered with this for a long time.

1 Like