Hi folks, I’m working on a cross-platform Juce app that I currently have running on OS X 10.7 and Windows 7. It’s an audio app in which I’m doing such things as displaying the audio amplitude in a Label (as a float value converted to String). I’m updating the String using a Timer with a 50 ms interval. I have multiple Labels (sometimes 25-50), but I’m updating them all using the same timerCallback.
Simple enough, right?
So, what I’ve noticed is that when I run the app on Mac, it uses like 70% of the CPU, vs. like 10% on Windows. But, when I hide the text boxes so that they don’t need to be updated by the timer, the CPU usage drops to below 10% on both systems.
I don’t quite understand why it uses so much more CPU on the Mac to update the Labels. Does it have something to do with rendering fonts? Anyway, it’s worth mentioning that my Mac is much newer (and I think much faster) than my PC - it’s a 2.5GHz Mini that I bought a few months ago, vs. my PC, which is a Core 2 Duo that’s almost 4 years old.
Any ideas? Please help if you can! Thanks!