Search Unity

Resolved Memory Profiler: RenderTexutre eats up 2.4Gb of memory and more

Discussion in 'Editor & General Support' started by Da_Neel, Jan 20, 2021.

  1. Da_Neel

    Da_Neel

    Joined:
    Dec 29, 2013
    Posts:
    15
    This is what Memory Profiler snapshot of my build shows. Does anyone knows what the hell is going on with all these RenderTexture 48 kb?





     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,797
    No idea. Which SRP are you using? Doesn't clicking on one of these provide a bit more information?
     
  3. Da_Neel

    Da_Neel

    Joined:
    Dec 29, 2013
    Posts:
    15
    I use URP.
    Clicking on them doesn't give any useful info.
    upload_2021-1-20_13-38-48.png
    Also when I just fly around in the scene view, textures size in profiler keeps increasing with ~100mb / 10sec rate
    upload_2021-1-20_13-40-48.png
     

    Attached Files:

  4. Spectrellian

    Spectrellian

    Joined:
    Mar 8, 2015
    Posts:
    27
    Damn. First it looks like you are creating lots and lots of renderTextures that are not getting cleaned up from Memory. This is most likely because of a script you added.

    I recommend that you check all your scripts for RenderTexture Instances and if they get cleaned up correctly.

    I had the same Problem once with normal Textures that started crashing my game after a few minutes
     
  5. Da_Neel

    Da_Neel

    Joined:
    Dec 29, 2013
    Posts:
    15
    Fixed after removing Gaia 2 Terrain Generator from the project and giving it a 0 star rating on store.