My Audio Plugin has an “analysis mode”, in which the audio fed into it is analysed in different ways. This is very CPU-intensive.
When profiling, I’ve noticed that the larger the GUI window is, the more CPU is used by the frequent repaints. I’ve optimized the GUI best I could, but the Plugin is still only able to operate in real-time with a small GUI window size.
Is there a way to limit the frequency of actual repaints during analysis mode (i.e. capping the GUI at 10fps), or at least lower the Graphics thread’s priority so much that the Audio IO thread is able to keep up with its computations?
Note: I’m testing my code in a Standalone App with a
DocumentWindow before building it into a Plugin, if that makes any difference.
Thanks in advance,