Hi everyone,
I’ve created a library for my new instrument, but I’ve encountered a frustrating issue:
When I change and load new presets from my library, the samples from the previous presets are not being cleared from RAM. As a result, after switching presets several times, HALion ends up consuming over 15 GB of RAM or more!
I’m wondering if there’s a way to force HALion to clean up the RAM used by the previous preset before loading a new one. I came across the onLoadSubPreset(section, data)
function and was thinking it might help.
Is it possible to use a script with this function (or another method) to ensure RAM is cleared properly when loading a new preset? Any advice or examples would be greatly appreciated!
Thanks in advance for your help!