Debugging Memory Usage
-
I've exported my plugin to test the current version, opened Reaper and loaded it in. I kept an eye on the memory usage.
Usage jumped from around 250 MB that Reaper uses on load to 1100 MB. I was floored! The Image Pool tile says 130 MB for the images, and the performance stats says 140 MB for the samples. Both of which is acceptable.
The actual real increase is 900 MB+! Each additional instance is an additional 500-600 MB.
If I render out the exact same project but and empty preset with just a sampler, the memory usage in Reaper goes up 50 MB or so. Right
If I delete all 3 samplers from my project, one of which has a 32 voice limit and another with an 8 voice limit, the usage in reaper goes down to 400 MB.
How do I properly track this inside of HISE?