Hello, over the last couple of days I’ve been making an oversampler so that I can apply non-linear effects. When testing, my spectrometer in studio one shows that it’s working as intended. However, studio one reports that I’m using 10% cpu for this process which strikes me as rather too much. How do people optimise their code?
My process is: Copy input buffer to longer buffer whilst inserting zeros for every extra sample, filter to nyquist using IIRFilter, non-linear process, filter to nyquist using IIRFilter, copy every original sample location back to the input buffer.
Am I doing anything horribly wrong here?
Edit: I’m upsampling by 8x, is this too much for a plugin? I shaved it down to 7% with 4x (but still seems like a lot seeming as the most intensive plugins run at under 4% on my machine).