I’m having a major issue with the CPU load caused by calling the repaint function in my meter objects. i have a timer loop set to about 25ms that polls for peak data from my hardware then calls my meter object passing the peak value where the meter object receives the value and repaints its self. I have about 8 meter objects on the screen and I’m getting between 8 and 15% CPU usage on a High end PC and about 45% on a Mac mini.
After going through and commenting out a lot of code i found that this over head is caused by just calling the repaint function itself even if there is no code in the paint function to execute.
I’ve experimented with only repainting a small portion that as actually changing with no significant increase in performance.
does anyone think it could be an issue to have my meter object nested in another composite component with other objects?
does anyone have an efficient way of doing fast responsive VU meters with juce??