Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Constant memory usage increase despite pooling everything and UnloadUnusedAssets after scene reloads

Discussion in 'Editor & General Support' started by Oniros88, Dec 27, 2022.

  1. Oniros88

    Oniros88

    Joined:
    Nov 15, 2014
    Posts:
    144
    upload_2022-12-27_17-2-42.png

    The biggest "offender" is reserved memory which I can't track where it comes from.

    Another thing that I noticed is that, specially in the case of scene objects their scripts never get unloaded and keep piling and piling in memory, despite I calling UnloadUnusedAssets after unloading the current scene.

    The actual game performance is currently very good, almost everything is pooled, the load times are very quick and my one and only problem is this increased memory over time. In my case it accounts to 200 MB of increased memory usage over around 12 hours, which is very serious for a server.
     
    alexeyzakharov likes this.
  2. alexeyzakharov

    alexeyzakharov

    Unity Technologies

    Joined:
    Jul 2, 2014
    Posts:
    505