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


    Nov 15, 2014

    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


    Unity Technologies

    Jul 2, 2014