[Discussion] AU Plug-in AudioParameterBool parameters aren’t recalling their state until the GUI becomes active/visible

I was having a problem only in Logic where my parameters where not being read until the GUI became activated. I solved it by reading each parameter in processBlock() instead of prepareToPlay().

For instance:

void ExampleAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiMessages)
{
    fxChain.template get<reverbIndex>().setEnabled(*reverbBypassParameter);
    //so on and so forth......
}

I know that doing too many computations in the processBlock() reduced performance, so I am wondering if you guys know a more elegant solution.