Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Where is the memory coming from?

Discussion in 'Profiler Previews' started by RakNet, Jan 29, 2021.

  1. RakNet


    Oct 9, 2013
    The memory profiler isn't very useful if there is no way to tell where the memory is coming from. For example, in my profile on game startup, in the 2D main menu, I have several large textures for a 3D cow model, although the cow model is not in a resources directory or otherwise linked in any way that I know of besides being in a few scenes.


    I even profiled the game and the cow model texture is still there for some reason.

    * Edit * To clarify I'm not asking about the cow specifically. I'm asking for a feature, which is that the memory profiler needs to indicate where and why items are included.
    Last edited: Jan 29, 2021
  2. MartinTilo


    Unity Technologies

    Aug 16, 2017
    Hi there,
    Yes, we're aware of this missing piece and working towards having Call Stacks in all Allocations but that needs a fundamental change to the entire low level allocation system so that might be a ways out into the future still.

    In the mean time, going through the references to the textures should still give you some idea as to what chain of references caused it to get loaded in.