Need help with memory management
While coding random level generator for my project, i noticed that unity would not free up memory its using in editor play mode(or in compiled game). It would just add up every time ive re launched play mode(for example if editor uses 1gb of ram before i stopped play mode, itll keep taking that 1gb after ive stopped it and it will use 2gb next time i launch play mode). I used profiler to see memory usage, and it does not show the issue there(every iteration of play mode it shows as if around 1gb of ram is used, even if it actually takes 3gb if task manager). Ive made sure that all coroutines do not have infinite loops, and that theyre all stoped after the level generator is finished. Ive also tried clearing all lists and dictionaries manually, clearing cache and used GC.Collect(). I was using unity version 2019.1.9b at the time, however ive now upgraded to version 2019.1.0f1 and the issue is still there.
@Roldo, have you gotten any updates on this? I've noticed the same thing is happening to me.
if thats the case it looks more like a editor bug than anything else, when playmode is exit the game stops running and memory gets cleaned, try building to different machines and see if its a pc issue