Search Unity

Combinee meshes still not released from memory

Discussion in 'Editor & General Support' started by n0mad, Oct 21, 2012.

  1. n0mad

    n0mad

    Joined:
    Jan 27, 2009
    Posts:
    3,732
    Hi,

    After a bit of research it seems this problem was noticed 2 years ago, and it seems nothing has changed :

    - Resources.Load some gameObjects containing meshes
    - VBO and VRAM fairly rise up
    - combine them
    - destroy loaded resources
    - VBO and VRAM don't lower even after seconds, hinting at some memory that is not cleaned.

    I isolated the problem, and it really comes from meshes.

    The only way to release memory is to perform a Resources.UnloadUnusedAssets(), but it'scomplete overkill in term of consumed time versus the needed operation.

    And as a matter of fact, we can ´t use UnloadAsset on GameObjects.

    What are we supposed to do ?