Search Unity

Discussion Terrain Memory Problem,

Discussion in 'World Building' started by hexdecc, Feb 23, 2023.

  1. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    148
    Hello, I saw that Terrain has NormalMap 21 mb and Height Map 8 mb per each terrain, but they referenced by 0,can we say that that is leak memory?

    How can we get rid of from this leak?

    Memory also spends ram for TerrainData around 8 mb each terrain.

    I share screenshots with you and waiting some feedback from you.






     
  2. mattb-unity

    mattb-unity

    Unity Technologies

    Joined:
    Feb 7, 2020
    Posts:
    55
    Unfortunately, I don't think this is a memory leak. But if you want to share a sample project of your setup, I can double check. I have a few other projects I'll be looking at this week.
     
  3. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,294
    You definitely got one with the terrain brushes. ie once you select a terrain gameobject, the terrain inspector loads all heightmaps of all brushes into memory. If you have a 100 in there, well, you know what happens. Any update when this will be fixed?
     
  4. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    148
    it is based on only editor?
    for example on the running on iOS device same memory problem happens or not?
     
    Last edited: Mar 4, 2023