question about memory leaks in editor
Posted: 03 Mar 2023, 00:45
I was doing some work with the memory profiler in Unity.. Basically, I'd launch unity, play in editor in a simple level, stop playing, take a memory snapshot, then play in editor in the same level again, exit, and take a second snapshot. Then I'd compare the two snapshots using the memory profiler.
What I'm seeing in the memory profile is it seems like a lot of Noesis objects are leaking each time I play in editor. For example, in my initial snapshot there were 4,483 instances of "NoesisApp.DataTrigger", and in the second snapshot there were 8,966.
I'm probably just doing something stupid and not shutting things down properly, so these aren't getting cleaned up -- but I'm not sure what exactly I'm missing... or if it's more just a problem with properly disposing my data model or something else.
have y'all ever seen this before, or have suggestions?
thanks,
sam
What I'm seeing in the memory profile is it seems like a lot of Noesis objects are leaking each time I play in editor. For example, in my initial snapshot there were 4,483 instances of "NoesisApp.DataTrigger", and in the second snapshot there were 8,966.
I'm probably just doing something stupid and not shutting things down properly, so these aren't getting cleaned up -- but I'm not sure what exactly I'm missing... or if it's more just a problem with properly disposing my data model or something else.
have y'all ever seen this before, or have suggestions?
thanks,
sam