loading large scriptnode networks taking several minutes
-
so i'm writing an additive synth with scriptnode and it's using all sorts of cloned chains, modulators etc etc, i'm just wondering if there are any easy optimizations that can be done to speed up loading times (inside HISE, the plugin version loads instantly) so i'm not waiting around doing nothing for 5 minutes every time i want to change something
here's the network if anyone wants to try it, maybe it's just my old i7 on its last legs, or maybe there's a better way to instantiate the 64-something sine waves...
-
Two things:
- Definitely deactivate the
ShowClones
parameter of your clone containers, this will only create a node component for the first child. You can do that in the XML manually by setting this
FactoryPath="container.clone" Bypassed="0" ShowClones="0"
- Try to divide and conquer as much as possible. Every container that can be treated as a black box module with a few parameters that go in can be compiled as decidated node and then used in the bigger network which keeps the total amount of nodes in check (also you get a better performance during development).
But yeah, it might be time to retire that i7 if you're talking about a Macbook. Your life quality will thank you for this and with the Mac Mini M2s being relatively cheap you can expect a huge performance gain in both compile times and UX snappiness.
If you're on Windows, enabling OpenGL for HISE (in the HISE settings) might increase the UI performance of networks a bit. I admit the UI performance of the network graph is not the fastest, but it kind of forces you to think more modular which can be considered as a good nudge in the right direction :)
- Definitely deactivate the
-
@Christoph-Hart can't believe i left showclones on... thanks for the tips!