- Home /
Unity Reservered Memory keep Increasing
Hello, I'm facing an issue related to memory.
long allocated = UnityEngine.Profiling.Profiler.GetTotalAllocatedMemoryLong() / BYTES_MB;
long reserved = UnityEngine.Profiling.Profiler.GetTotalReservedMemoryLong() / BYTES_MB;
uitext.text = System.String.Format("{0}/{1} mb", allocated, reserved);
I'm using this code to print the memory usage. So unity version after 2018.4.29 reserved memory is keep increasing when change scene or reload scene due to this game is getting slower after sometime. This issue is not in 2018.4.29 but after this in all version I'm facing this issue. I used MemoryProfiler to check if I am able to find anything but there is not much change in allocated memory, I'm also unloading the unused asset after each scene load. Anybody else faces the same issue or know anything about this issue.
Your answer
Follow this Question
Related Questions
What could be causing my super low performance on my Android tablet? 3 Answers
Spikes with Physics.Simulate() in empty scene? 0 Answers
Profiler Alpha Mobile 0 Answers
Shader.Parse overhead 0 Answers
Unity 2019.3 LWRP strange Performance Issue on android 0 Answers