CPU optimization
Posted: Sun Oct 10, 2010 8:40 am
I'm looking for ways to decrease the CPU utilization of my schematic without (yet anyway) resorting to assembly level stuff. One of the sections has 5 EQ bands, each of which can be selected to be one of the biquad family. I put in the 4 that I use the most (adjustable Q HP, adjustable Q LP, parametric peak/dip, and bass shelf), plus a bypass. I packed the stereo signal before going in the EQ block, which helps, but having all those filters idling when nothing is going into them seems like an area for big improvement.
Is there a way I can "shut down" a code section when no signal is present? In this case, there is a multiplexer upstream (driven by the filter selection) that sends the packed stream to one of the five choices (the four filters or the bypass route), so the unselected ones appear to be churning away, processing a non-existent signal. My first thought was to combine all the filters into one code block, which is easy with if/then/else branching, but I don't see how to mimic easily with masks.
Any suggestions for either method? Thanks in advance!
Is there a way I can "shut down" a code section when no signal is present? In this case, there is a multiplexer upstream (driven by the filter selection) that sends the packed stream to one of the five choices (the four filters or the bypass route), so the unselected ones appear to be churning away, processing a non-existent signal. My first thought was to combine all the filters into one code block, which is easy with if/then/else branching, but I don't see how to mimic easily with masks.
Any suggestions for either method? Thanks in advance!