Performance (Samplemaps/Samples)
-
Hello there!
I know thats quite a big topic, but what are the most performance heavy tasks?
My newest instrument is quite laggy and I would like to improve that.- What has more impact changing Samplemaps, or switching between Samplers
- I used .getAllComponents, should I create an array with only the elements I really need (few exceptions)
- What about graphics? How much impact do kinda big images have on performance and how about vectors, are they less heavy, or more?
Thanks for any tipps!
(ps. also using 1 convolution Reverb & 1 EQ) -
@VorosMusic have you tried using OpenGL? You'll find an option in settings
-
-
-
@VorosMusic said in Performance (Samplemaps/Samples):
- What has more impact changing Samplemaps, or switching between Samplers
What do you mean by "switching samplers"? Changing sample maps doesn't really have an impact because this is an offline process, you should be changing them on the fly.
- I used .getAllComponents, should I create an array with only the elements I really need (few exceptions)
If you only want specific elements you shouldn't use
getAllComponents
probably. Or if you are going to use it pass a regex filter. You should only be calling this function inon init
and storing references that you then use in other parts of your script. Using a sensible naming scheme for your components will greatly help.- What about graphics? How much impact do kinda big images have on performance and how about vectors, are they less heavy, or more?
Images use RAM, vectors have minimal impact, complex lottie animations might be noticeable on the CPU.
Is your Interface script deferred? If not, are you doing UI tasks in the real-time callbacks? If so that's going to cause issues.
Read this if you haven't already - https://forum.hise.audio/topic/79/scripting-best-practices
-
-
@d-healey Thank you, that was really helpful!
I'll definitely check out the thread you mentioned.and by switching I meant:
I have buttons on the UI to switch between different Instruments/Samples, a few of them are similar in behavior and could probably be done in the same sampler just by switching the sample maps.ps. Most of them never play at the same time.
-
I have buttons on the UI to switch between different Instruments/Samples
There are multiple methods to do that, so it would depend on what you're doing.