# \#Memory-Management

**URL:** https://discussions.unity.com/tag/memory-management/159526.md

[Latest](https://discussions.unity.com/latest.md) · [Categories](https://discussions.unity.com/categories.md) · [Tags](https://discussions.unity.com/tags.md)

---

## [Materials are not unloaded on scene change](https://discussions.unity.com/t/materials-are-not-unloaded-on-scene-change/1649322)

<div class="topic-metadata">

**Author:** [@Lemior](https://discussions.unity.com/u/Lemior)\
**Replies:** 12\
**Last updated:** [December 2, 2026, 10:05am UTC](https://discussions.unity.com/t/materials-are-not-unloaded-on-scene-change/1649322 "2026-12-02T10:05:49Z")

</div>

Hey, i currently have a problem with a high memory usage of my game. I profiled with the memory profiler and found the following things. Almost every asset in the scene is not unloaded. All materials have 0 references …

---

## [Memory Profiler 1.2.0 Released — Roots & Impact Profiling & CoreCLR Support](https://discussions.unity.com/t/memory-profiler-1-2-0-released-roots-impact-profiling-coreclr-support/1735523)

<div class="topic-metadata">

**Author:** [@MartinTilo](https://discussions.unity.com/u/MartinTilo)\
**Replies:** 4\
**Last updated:** [November 27, 2026, 6:06pm UTC](https://discussions.unity.com/t/memory-profiler-1-2-0-released-roots-impact-profiling-coreclr-support/1735523 "2026-11-27T18:06:36Z")

</div>

Note: This post was updated from what was the 1.2.0-pre.1 release post to reflect the state of the 1.2.0 version. We’ve just released version 1.2.0 of the Memory Profiler package, and with it the new Roots & Impact ta…

---

## [Memory Profiler Releases](https://discussions.unity.com/t/memory-profiler-releases/730398)

<div class="topic-metadata">

**Author:** [@alexrvn](https://discussions.unity.com/u/alexrvn)\
**Replies:** 56\
**Last updated:** [November 23, 2026, 5:12pm UTC](https://discussions.unity.com/t/memory-profiler-releases/730398 "2026-11-23T17:12:41Z")

</div>

This thread will be updated each time a new version of the Memory Profiler package is released.

---

## [How to get VM memory usage in runtime](https://discussions.unity.com/t/how-to-get-vm-memory-usage-in-runtime/1736783)

<div class="topic-metadata">

**Author:** [@Miguelale23](https://discussions.unity.com/u/Miguelale23)\
**Replies:** 3\
**Last updated:** [September 17, 2026, 11:22am UTC](https://discussions.unity.com/t/how-to-get-vm-memory-usage-in-runtime/1736783 "2026-09-17T11:22:16Z")

</div>

Im working on a memory analyzer during runtime that tracks different types of memory, when looking at Managed memory I can already see the managed Heap and reserved memory, but I cant find a way to get the VM memory.

---

## [UnityEngine.Object ==operator fake null: Fix and optimization proposal](https://discussions.unity.com/t/unityengine-object-operator-fake-null-fix-and-optimization-proposal/1734475)

<div class="topic-metadata">

**Author:** [@Tripledot\_Rafael\_Wawer](https://discussions.unity.com/u/Tripledot_Rafael_Wawer)\
**Replies:** 2\
**Last updated:** [August 21, 2026, 4:41pm UTC](https://discussions.unity.com/t/unityengine-object-operator-fake-null-fix-and-optimization-proposal/1734475 "2026-08-21T16:41:38Z")

</div>

Hey guys. After I created recently a custom automated memory leak analyzer tool for a number of large projects in production, I noticed how many leaks come from how Object’s ==operator is unable to detect a destroyed Mo…

---

## [CoreCLR, Scripting, and Serialization Update - June 2026](https://discussions.unity.com/t/coreclr-scripting-and-serialization-update-june-2026/1723299)

<div class="topic-metadata">

**Author:** [@EricDziurzynski](https://discussions.unity.com/u/EricDziurzynski)\
**Replies:** 55\
**Last updated:** [August 20, 2026, 5:41pm UTC](https://discussions.unity.com/t/coreclr-scripting-and-serialization-update-june-2026/1723299 "2026-08-20T17:41:35Z")

</div>

CoreCLR, Scripting, and Serialization Update - June 2026 Hi everyone, Following our public roadmap sessions at GDC 2026 and our previous community update, we are back to share our next quarterly look into the technical …

---

## [NativeArray support for custom allocator](https://discussions.unity.com/t/nativearray-support-for-custom-allocator/1733594)

<div class="topic-metadata">

**Author:** [@Per-Morten](https://discussions.unity.com/u/Per-Morten)\
**Replies:** 1\
**Last updated:** [August 11, 2026, 3:21pm UTC](https://discussions.unity.com/t/nativearray-support-for-custom-allocator/1733594 "2026-08-11T15:21:48Z")

</div>

Looking at the documentation for custom allocators (Use a custom allocator | Collections | 6.6.0) it says that to create a NativeArray you have to use CollectionHelper.CreateNativeArray, and to dispose it you have to use…

---

## [\[New Release 50% Off 🔥\] Web Adaptive Performance | WebGL FPS Booster & Lag Killer](https://discussions.unity.com/t/new-release-50-off-web-adaptive-performance-webgl-fps-booster-lag-killer/1723712)

<div class="topic-metadata">

**Author:** [@GrindsetStudios](https://discussions.unity.com/u/GrindsetStudios)\
**Replies:** 1\
**Last updated:** [August 11, 2026, 7:38am UTC](https://discussions.unity.com/t/new-release-50-off-web-adaptive-performance-webgl-fps-booster-lag-killer/1723712 "2026-08-11T07:38:42Z")

</div>

We Are Live! Get WebAP on the Asset Store (50% Launch Discount) Building for WebGL is always a gamble. You test your project on a solid PC, and it easily hits 60 frames. Then someone opens it on a budget Android phon…

---

## [Why Model Importer not support removing identical meshes? I write this options for everyone](https://discussions.unity.com/t/why-model-importer-not-support-removing-identical-meshes-i-write-this-options-for-everyone/1733139)

<div class="topic-metadata">

**Author:** [@mitaywalle](https://discussions.unity.com/u/mitaywalle)\
**Replies:** 3\
**Last updated:** [August 6, 2026, 8:37am UTC](https://discussions.unity.com/t/why-model-importer-not-support-removing-identical-meshes-i-write-this-options-for-everyone/1733139 "2026-08-06T08:37:57Z")

</div>

Problem By default, Unity imports identical objects, or instances from a single 3d Model (.fbx .blend .obj etc) file only as separate meshes Historically, at our company, 3D artists (Level Artist, Environment Artist) of…

---

## [WebGL OOM errors during startup](https://discussions.unity.com/t/webgl-oom-errors-during-startup/1732131)

<div class="topic-metadata">

**Author:** [@OneManArmy3D](https://discussions.unity.com/u/OneManArmy3D)\
**Replies:** 8\
**Last updated:** [July 28, 2026, 3:49pm UTC](https://discussions.unity.com/t/webgl-oom-errors-during-startup/1732131 "2026-07-28T15:49:00Z")

</div>

Hello, We are logging errors from our WebGL game and one of the frequent errors is an out-of-memory crash. It often happens immediately after the game is launched, while loading initial content. Example error (desktop …

---

## [(IN-149221) Memory leaks in various Unity 6.6 systems](https://discussions.unity.com/t/in-149221-memory-leaks-in-various-unity-6-6-systems/1731944)

<div class="topic-metadata">

**Author:** [@Peter77](https://discussions.unity.com/u/Peter77)\
**Replies:** 0\
**Last updated:** [July 23, 2026, 4:06pm UTC](https://discussions.unity.com/t/in-149221-memory-leaks-in-various-unity-6-6-systems/1731944 "2026-07-23T16:06:49Z")

</div>

Switching between scenes causes memory to grow each time. Please see the provided video for a detailed walkthrough. Project to reproduce can be found in bug-report IN-149221. Actual: The object count and memory usage co…

---

## [(IN-127964 / UUM-131202) Memory leak in UniversalRenderPipeline.CameraMetadataCache](https://discussions.unity.com/t/in-127964-uum-131202-memory-leak-in-universalrenderpipeline-camerametadatacache/1700197)

<div class="topic-metadata">

**Author:** [@Peter77](https://discussions.unity.com/u/Peter77)\
**Replies:** 7\
**Last updated:** [July 14, 2026, 6:53am UTC](https://discussions.unity.com/t/in-127964-uum-131202-memory-leak-in-universalrenderpipeline-camerametadatacache/1700197 "2026-07-14T06:53:14Z")

</div>

Switching between scenes causes UniversalRenderPipeline.CameraMetadataCache.s\_MetadataCache to grow each time. Please see bug-report IN-127964

---

## [High Visual Studio memory usage after upgrading Unity project to 6000.3.41](https://discussions.unity.com/t/high-visual-studio-memory-usage-after-upgrading-unity-project-to-6000-3-41/1706165)

<div class="topic-metadata">

**Author:** [@syieeeee](https://discussions.unity.com/u/syieeeee)\
**Replies:** 3\
**Last updated:** [June 5, 2026, 12:25am UTC](https://discussions.unity.com/t/high-visual-studio-memory-usage-after-upgrading-unity-project-to-6000-3-41/1706165 "2026-06-05T00:25:25Z")

</div>

Hello everyone, I’d like to share an issue I’ve started experiencing recently and ask if anyone else has encountered something similar or found a solution. Previously, I was using Unity 2022.3.51f1 together with Visual…

---

## [Performance warning using allocators created with Low Level Native Plugin Memory Management API?](https://discussions.unity.com/t/performance-warning-using-allocators-created-with-low-level-native-plugin-memory-management-api/1722071)

<div class="topic-metadata">

**Author:** [@RicardoAmores\_MPG](https://discussions.unity.com/u/RicardoAmores_MPG)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 3:13pm UTC](https://discussions.unity.com/t/performance-warning-using-allocators-created-with-low-level-native-plugin-memory-management-api/1722071 "2026-06-04T15:13:59Z")

</div>

Hi I’m interested in using the Low Level Native Plugin Memory Management API to create memory allocators that could be passed to be used by a native plugin. Main motivation is to be able to tag the memory used by the na…

---

## [Memory Infaltion in Unity 6](https://discussions.unity.com/t/memory-infaltion-in-unity-6/1721074)

<div class="topic-metadata">

**Author:** [@Primeachiever](https://discussions.unity.com/u/Primeachiever)\
**Replies:** 9\
**Last updated:** [May 26, 2026, 3:04pm UTC](https://discussions.unity.com/t/memory-infaltion-in-unity-6/1721074 "2026-05-26T15:04:09Z")

</div>

Hi, I’m experiencing a memory inflation issue in my Unity project on Windows builds. When I run the project, memory usage slowly keeps increasing over time. I have a pooling system in the hierarchy that handles spawning…

---

## [ImageConversion.LoadImage causes ALLOC\_TEMP\_MAIN memory leak (4096 bytes) on corrupted PNG](https://discussions.unity.com/t/imageconversion-loadimage-causes-alloc-temp-main-memory-leak-4096-bytes-on-corrupted-png/1712641)

<div class="topic-metadata">

**Author:** [@AbdullahShafqat](https://discussions.unity.com/u/AbdullahShafqat)\
**Replies:** 2\
**Last updated:** [May 25, 2026, 11:46am UTC](https://discussions.unity.com/t/imageconversion-loadimage-causes-alloc-temp-main-memory-leak-4096-bytes-on-corrupted-png/1712641 "2026-05-25T11:46:15Z")

</div>

Hi all, I’m encountering a persistent memory leak in the Unity editor (and on-device) when calling ImageConversion.LoadImage on a PNG byte array that has become corrupted in transit. The leak manifests as a 4096-byte AL…

---

## [Unity Editor Gradually Increasing Non-Paged Memory Pool](https://discussions.unity.com/t/unity-editor-gradually-increasing-non-paged-memory-pool/1718632)

<div class="topic-metadata">

**Author:** [@theoyveyman](https://discussions.unity.com/u/theoyveyman)\
**Replies:** 2\
**Last updated:** [May 2, 2026, 3:21pm UTC](https://discussions.unity.com/t/unity-editor-gradually-increasing-non-paged-memory-pool/1718632 "2026-05-02T15:21:56Z")

</div>

So these past few days I’ve been dealing with a sudden annoying memory leak that seems to only occur when using any version of the Unity Editor and across multiple projects. Every time the editor needs to process somethi…

---

## [3D model optimization](https://discussions.unity.com/t/3d-model-optimization/1716768)

<div class="topic-metadata">

**Author:** [@VaibhavTcs](https://discussions.unity.com/u/VaibhavTcs)\
**Replies:** 6\
**Last updated:** [April 26, 2026, 3:28pm UTC](https://discussions.unity.com/t/3d-model-optimization/1716768 "2026-04-26T15:28:07Z")

</div>

AR Foundation – App Crash & Model Import Issues We are building a mobile AR application using Unity AR Foundation A large 3D model (Prefab size ~470MB) is placed on a detected ground plane Issues App crashes when pl…

---

## [How does PersistantManager.Remapper RAM usage being calculated?](https://discussions.unity.com/t/how-does-persistantmanager-remapper-ram-usage-being-calculated/1712695)

<div class="topic-metadata">

**Author:** [@madcorner](https://discussions.unity.com/u/madcorner)\
**Replies:** 4\
**Last updated:** [April 14, 2026, 11:55am UTC](https://discussions.unity.com/t/how-does-persistantmanager-remapper-ram-usage-being-calculated/1712695 "2026-04-14T11:55:37Z")

</div>

I want to know how does PersistantManager.Remapper RAM usage being calculated, I trying to reduce RAM usage to be lower than 2 GB, current Remapper is currently around 270 MB, and I can’t find a way to reduce it unlike o…

---

## [2D Sprite atlas: best practices guide and video tutorial](https://discussions.unity.com/t/2d-sprite-atlas-best-practices-guide-and-video-tutorial/1710036)

<div class="topic-metadata">

**Author:** [@eduardooriz](https://discussions.unity.com/u/eduardooriz)\
**Replies:** 2\
**Last updated:** [April 7, 2026, 9:30am UTC](https://discussions.unity.com/t/2d-sprite-atlas-best-practices-guide-and-video-tutorial/1710036 "2026-04-07T09:30:06Z")

</div>

Hey everyone, If you tune into Unity’s YouTube channel then you’ll see that we have a new video tutorial about best practices for using the 2D Sprite Atlas feature. My post today is based on the work and research made f…

---

## [Memory Profiler: Large gap between Unity Objects and Total Resident Memory](https://discussions.unity.com/t/memory-profiler-large-gap-between-unity-objects-and-total-resident-memory/1714796)

<div class="topic-metadata">

**Author:** [@ZRoad](https://discussions.unity.com/u/ZRoad)\
**Replies:** 4\
**Last updated:** [March 31, 2026, 11:25am UTC](https://discussions.unity.com/t/memory-profiler-large-gap-between-unity-objects-and-total-resident-memory/1714796 "2026-03-31T11:25:29Z")

</div>

Hello everyone, I’m currently trying to optimize the RAM usage of my game, but I’m running into some confusion. When I capture memory using the Memory Profiler on a real device (with a build of my game), I see multiple…

---

## [Unity crashing. memory problem](https://discussions.unity.com/t/unity-crashing-memory-problem/1714339)

<div class="topic-metadata">

**Author:** [@rocinhawars](https://discussions.unity.com/u/rocinhawars)\
**Replies:** 2\
**Last updated:** [March 27, 2026, 4:24pm UTC](https://discussions.unity.com/t/unity-crashing-memory-problem/1714339 "2026-03-27T16:24:29Z")

</div>

unity crahsing and consumign all of memomry, i have 16gb, nitro5 gtx1650. editor crashing everytime, but game are normal. something wrong with editor. INDOWS\\SYSTEM32\\opencl.dll:opencl.dll (00007FFEDE210000), size: 48332…

---

## [Severe Persistent Memory Leak After Entering NetCode for Entities Game Scene (Client/Server Worlds)](https://discussions.unity.com/t/severe-persistent-memory-leak-after-entering-netcode-for-entities-game-scene-client-server-worlds/1706296)

<div class="topic-metadata">

**Author:** [@Newb\_Ninja1](https://discussions.unity.com/u/Newb_Ninja1)\
**Replies:** 14\
**Last updated:** [March 16, 2026, 11:26am UTC](https://discussions.unity.com/t/severe-persistent-memory-leak-after-entering-netcode-for-entities-game-scene-client-server-worlds/1706296 "2026-03-16T11:26:08Z")

</div>

Hey Guys, I am experiencing a persistent, reproducible memory leak in a Unity project using NetCode for Entities. The leak begins immediately after entering the NetCode-enabled main game scene and persists for the lifeti…

---

## [Rendering in lastest versions causes extreme memory leak](https://discussions.unity.com/t/rendering-in-lastest-versions-causes-extreme-memory-leak/1690913)

<div class="topic-metadata">

**Author:** [@Ritbulau](https://discussions.unity.com/u/Ritbulau)\
**Replies:** 18\
**Last updated:** [March 15, 2026, 12:01pm UTC](https://discussions.unity.com/t/rendering-in-lastest-versions-causes-extreme-memory-leak/1690913 "2026-03-15T12:01:45Z")

</div>

I just created a new URP sample project for testing and by placing just one TextMeshPro on scene memory leak started to form. My RAM is being eaten at rate of 10-70 mb/s, which is insane. For example memory profiler show…

---

## [Memory Leak For No Reason](https://discussions.unity.com/t/memory-leak-for-no-reason/1710956)

<div class="topic-metadata">

**Author:** [@nytridic](https://discussions.unity.com/u/nytridic)\
**Replies:** 6\
**Last updated:** [March 5, 2026, 7:15pm UTC](https://discussions.unity.com/t/memory-leak-for-no-reason/1710956 "2026-03-05T19:15:36Z")

</div>

I’m making a quick video game for fun and one day I opened it and clicked play to test something. I waited 5 minutes for the play mode to start and for my entire console to be instantly filled up with: TLS Allocator ALLO…

---

## [Insane RAM usage with U3 LTS, Windows](https://discussions.unity.com/t/insane-ram-usage-with-u3-lts-windows/1707653)

<div class="topic-metadata">

**Author:** [@sergiusz308](https://discussions.unity.com/u/sergiusz308)\
**Replies:** 12\
**Last updated:** [March 25, 2026, 3:38pm UTC](https://discussions.unity.com/t/insane-ram-usage-with-u3-lts-windows/1707653 "2026-03-25T15:38:46Z")

</div>

Hi, is it me or anyone else also observing Unity Editor memory consumption going nuts? I have URP project, default scene (Camera, Light, Global Volume), single object with a script which creates 256x256 texture and appr…

---

## [How to deallocate memory for shadowmaps when shadows are disabled (HDRP)](https://discussions.unity.com/t/how-to-deallocate-memory-for-shadowmaps-when-shadows-are-disabled-hdrp/1709163)

<div class="topic-metadata">

**Author:** [@unity\_E80AC5F3579C1E03D08E](https://discussions.unity.com/u/unity_E80AC5F3579C1E03D08E)\
**Replies:** 6\
**Last updated:** [February 24, 2026, 6:09pm UTC](https://discussions.unity.com/t/how-to-deallocate-memory-for-shadowmaps-when-shadows-are-disabled-hdrp/1709163 "2026-02-24T18:09:09Z")

</div>

Is there any way to deallocate memory for shadow maps, cached shadow maps, etc at runtime in HDRP? I’m working on a HDRP project targeted at gaming PCs but would like to give users extensive settings control so it can r…

---

## [Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old](https://discussions.unity.com/t/internal-jobtempalloc-has-allocations-that-are-more-than-the-maximum-lifespan-of-4-frames-old/1708242)

<div class="topic-metadata">

**Author:** [@koirat](https://discussions.unity.com/u/koirat)\
**Replies:** 5\
**Last updated:** [February 10, 2026, 4:17pm UTC](https://discussions.unity.com/t/internal-jobtempalloc-has-allocations-that-are-more-than-the-maximum-lifespan-of-4-frames-old/1708242 "2026-02-10T16:17:49Z")

</div>

So unity started to show me : Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old So I have run Unity with -diag-job-temp-memory-leak-validation argument. And other settings: …

---

## [(IN-127960) Memory leak in UnityEventBase.s\_UnityEvents](https://discussions.unity.com/t/in-127960-memory-leak-in-unityeventbase-s-unityevents/1700186)

<div class="topic-metadata">

**Author:** [@Peter77](https://discussions.unity.com/u/Peter77)\
**Replies:** 5\
**Last updated:** [February 8, 2026, 2:42pm UTC](https://discussions.unity.com/t/in-127960-memory-leak-in-unityeventbase-s-unityevents/1700186 "2026-02-08T14:42:24Z")

</div>

Using components that have UnityEvent’s, such as the Button component that features OnClick events, causes a memory leak, because these events seem to be added to a static list where they’re never removed from again. Th…

---

## [Understanding Memory Management in Unity](https://discussions.unity.com/t/understanding-memory-management-in-unity/1700107)

<div class="topic-metadata">

**Author:** [@ijemin](https://discussions.unity.com/u/ijemin)\
**Replies:** 17\
**Last updated:** [February 5, 2026, 3:35pm UTC](https://discussions.unity.com/t/understanding-memory-management-in-unity/1700107 "2026-02-05T15:35:53Z")

</div>

Hi! I’m Jemin Lee, a Partner Engineer at Unity. Over the years, there are two questions I’ve heard many times whenever developers start profiling memory in Unity: Why doesn’t my managed heap or virtual memory usage dr…

[Next page](https://discussions.unity.com/tag/memory-management/159526.md?match_all_tags=true&page=1&tags%5B%5D=Memory-Management)
