Search Unity

Question memory usage for shader increase when using addressable.

Discussion in 'Web' started by omanuke, Dec 8, 2023.

  1. omanuke

    omanuke

    Joined:
    May 5, 2017
    Posts:
    30
    I'm trying to reduce the memory usage of my webgl project.
    I found there is difference in shader section whether I load scene from addressable or start that scene at first.
    I took screenshot from memory profiler.
    A is the snapshot for loading scene from addressable. B is for loading that scene at first.
    Texture2d is different also, but it came from duplicated reference for some asset, so please ignore it.
    upload_2023-12-8_19-41-24.png

    This image is unity objects of A.
    Standard shader waste memory.
    upload_2023-12-8_19-47-3.png
    This image is same one of B.
    Obviously the usage of Standard shader is small. References is same.
    upload_2023-12-8_19-50-0.png

    Any info is helpful.
    Regards,
     

    Attached Files:

  2. omanuke

    omanuke

    Joined:
    May 5, 2017
    Posts:
    30
    I got reason. There are many assets uses standard shader in my addressable, so standard shader became big.