- Home /
How to reduce reserved unused heap memory?
Iam doing some temporary memory intesive opeartions in a custom editor window but after Iam done all that memory is now sitting unused in 'ManagedHeap.ReservedUnusedSize' according to the profiler. How can I return this memory back to os? Looking into task manger, Unity is now using most of my RAM and I can't do anything about it.
You may be looking in the wrong place for optimisation.
What are you trying to do? i.e. what memory intensive operations?
I loaded a few big textures, did something in the scene based on the data and now I no longer need those textures in the memory. GC freed up the memory, so it's unused but still alocated to the unity proces..
Answer by sacredgeometry · Jan 05, 2020 at 11:02 PM
https://docs.unity3d.com/Manual/BestPracticeUnderstandingPerformanceInUnity4-1.html
Hopefully this will help. Perhaps break your textures into smaller ones.