Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

RenderTexture memory Usage

Discussion in 'Editor & General Support' started by unity_UQSHU1PHubwoDw, Sep 2, 2019.

  1. unity_UQSHU1PHubwoDw

    unity_UQSHU1PHubwoDw

    Joined:
    Aug 27, 2019
    Posts:
    2
    Hi! I have a scene which has some explosion particles. I'm using the memory profiler to check the memory usage. "Texture2D" Appears to be 20MB, but "RenderTexture" Shows as 250MB. Is this a normal value? I only have a camera and the explosion particles, I didn't actually set up a render texture so I don't know why it's showing up.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    2,858
    Does the render texture use Antialiasing? This will increase the texture size massively.
    Are you measuring inside the editor or from a build?
    You may be dealing with stuff from the editor showing up.
     
  3. unity_UQSHU1PHubwoDw

    unity_UQSHU1PHubwoDw

    Joined:
    Aug 27, 2019
    Posts:
    2
    I'm not actually using a rendertexture. I only have a camera and the particles in the scene, no lights or anything else. I'm guessing it shows up as rendertexture because there's a camera?
     
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    2,858
    The editor uses rendertextures to draw the scene and dependent on the rendering Pipeline unity does use render textures internally for rendering.
    To make sure you can build a debug build and connect the profiler to it.
     
    MartinTilo likes this.