Sampler Release = Huge CPU Spikes
-
Hey Gang,
Im creating a Quad Sampler instrument. Each sampler has minimal effects + a granulizer that loads whatever samplemap is loaded in the sampler.
I have a global ADSR for the samplers. If Im playing one sampler, the cpu never really goes above 10%, even with fairly long release times on the global release.
Add the 2nd sampler and everything is still OK, until you turn the release time up (I would say starting at around the 3-5 second mark), then I get major cpu spikes, specifically while playing chords. It was regularly reaching 80%, but if I was going a bit crazy, could get over 200%. It doesnt seem to change from 2-4 samplers, its about the same usage. So the big jump is from 1 to 2 samplers.
The sample library is fairly large and has a sample for each key c3-g8. Some samples are pretty long as well. They are compressed monoliths.
Is this the sample library and the fact its rendering multiple voices and large files at a time the issue? Is there something else I should look into as well?
-
@trillbilly no you can render hundreds if not thousands of voices with modern CPUs.
what's the voice count like? Open the HISE controller and take a look at the stats.
-
@Christoph-Hart
2 Samplers Enabled - 0 voices playing
2 Samplers Enabled - 24 voices playing
This is with 4.6s release time.
Im playing basic chords at a rather fast tempo.
-
@trillbilly 24 voices is nothing, there is definitely something else going on. Have you tried the module tree profiler this should point you towards the culprit.
-
@Christoph-Hart No I havent. Ive never heard of it. I'll look around for it now and see if I can pinpoint it.
If you have any info to share about it here, it would be appreciated.