@Christoph-Hart Thanks Christoph, I already tried that, 64 is enough for what I need. I also set the preload size to 8, and it still takes almost the same time to do the preloading.
The memory consumption is ok, but the time needed for all sample maps to load is crucial for what I want to make, let me explain.
What I want to make is something like Kontakt Bank, where 128 patches/instruments are loaded and then PC messages simply change which patch is playing.
Each bank is connected to only one midi channel, so with Kontat I would need 20 banks for 20 midi channels I have.
Kontakt changes from patch to patch instantly, however with my VST sampler the presets need maybe 200-300 ms to load, which is really not a problem in most cases, but I am building a sampler for a real time arranger so every millisecond counts.
Maybe I am not doing it properly. My VST has 10 samplers inside, so I use 20 VST instances to get the multi-timbral 20 midi channel setup.
Will it have more sense to create one VST with 200 samplers instead, and then route the midi channels, and change the PC/presets internally?
This seems overly complicated to build, does HISE even support PC messages after all?