Replies: 1 comment
-
Normally each heap will cache a certain amount of spans (each span is by default 64KiB) defined by the Then the global cache for all heaps/threads is a multiplier of each thread cache size, defined by As long as the allocator is initialized it will hang on to these caches to improve performance, hence calls to Now, when |
Beta Was this translation helpful? Give feedback.
-
Wanted to know more about memory usage before and after a scope. i.e
InitExample();
DoSomeWork();
DeinitExample();
Mainly if after scope exit is memory decommitted and freed ?. In this case memory in use should ideally be approximately same as before. And that seems to be the case when using spRealArrays or simple data types. When loading scene it seems to release most of it. However there is quiet a sizeable amount that is left behind. And if scene is just copied and released this offset grows. The finalize call does release everything so not a leak. However trying to understand if its caused by a superspans not being release or are there orphaned heaps?
Beta Was this translation helpful? Give feedback.
All reactions