How many times is the onControl callback supposed to be triggered on compile?
-
I was checking the onControl callback for handling certain tasks for persistent data when I noticed a bit of redundancy.
Here in my project it is being triggered 171 times:
It was my impression that it only needs to run the onControl once after everything compiles.
How/why is it getting triggered so many times?
Is that something I need to fix or is that expected? -
@VirtualVirgin I suspect it will be triggered once for every control on the UI that has saveInPreset enabled.
@VirtualVirgin said in How many times is the onControl callback supposed to be triggered on compile?:
Is that something I need to fix or is that expected?
The OnControl callback is a left over thing from the early days of HISE before we were able to assign individual callbacks to controls. I wouldn't use it these days, I guess it might even be removed in the future or hidden behind a preprocessor definition.
-
@d-healey I'm imagining that you answered that question before I even submitted it! Lightning fast response.
-
@VirtualVirgin How were you able to count the number of calls?