Dynamically enabling/disabling containers?

Hey there

I’m currently working on my first VJ-ing rig and things are going smoothly so far. I have four graphics modules that I can fade between using either the UI or an Auto-setting. I would like to add more in the future, but I know that I’ll eventually run into performance issues. Is there a way to automatically stop processing invisible modules? Like a culling function for performance? Or is the only way to “manually” trigger cooking on/off using a script?

Thanks!

hey @syverlauritz, this ‘culling’ is already implemented in the core of TouchDesigner.
Basically TD only cooks nodes which are connected to the current output.
So for instance if you use a Switch TOP which is currently set to index 1, any nodes connected to index 0 will not cook in Perform Mode.
Also see this page for more details : Cook - Derivative

Wow, that’s really clever. I probably heard about it from some of the intro tutorials but I guess I filtered it out. But yes, when using the probe I can see that my inactive streams are in fact, not cooking.

Thank you!