Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Unity do not unload from memory after Additive scene was unloaded?

Discussion in 'Web' started by battou, Jan 24, 2023.

  1. battou


    Jan 25, 2011
    Hi. Im facing a problem with our WebGL project. We are using Addressables to load and unload scenes additively to add or remove parts of content. We also always have one scene loaded ontop of whitch other scenes are loading. This scene is always loaded and do not get unloaded.

    So the problem is that in time with more and more scenes being loaded additively and unloaded memory usage grows and never go down.

    We use Addressables UnloadSceneAsync to unload scene and tried to call Resources.UnloadUnusedAssets, but memory usage still constantly goes un with every scene load.

    In Chrome in memory snapshot bulk of the memory usage is in system/JSArrayBufferData. It starts from 180 MB and goes up until it ia the size of all assets of our project, around 800 MB.

    We using Unity 2021.3.0f1

    Is this a bug? Or do we need to do something else to clean up the memory?