My template is becoming big and therefore I need to start doing optimization for the memory and cpu usage.
There are hundreds of widgets created dynamically which I am controlling through OSC listeners.
I am wondering if this is the right way or if instead it would be better to store the widgets in memory and call the EDIT command to change their inner properties.
When using OSC listener, I suppose there is a communication that goes from the client to the server and back?
I think the best would be to have all the code inside the client, to avoid network usage.
I am also working on a big template, i would opt for minimum amount of widgets. I show and hide the widgets according to objects in the custom module. To be easy accessible, the widgets have a number at the end…
Using cloned objects should improve performance too.
Avoid a lot of code in the gui, just simple things. Use the custom module…
Would you say that storing widget objects and calling /EDIT is more efficient than creating widgets on the fly with OSC listeners in the attributes and then send receiveOSC when needed?