I know, it’s not the first time I am adressing this subject… On OS X, wether it is PPC or Intel, the repainting in JUCE takes too much time. In my app, I have 2 Wave Displays, and they get updated (=repainted) every 20ms. The painting itself does not take much time, it is the blitting by the OS that takes much time.
I know Jules said that this had something to do with the fact that Juce switched to using HIViews some time ago. But, is there no way to accelerate this? Believe it or not, but on my IBook G4, 50% of the total CPU power are used to render the 2 Wave Displays! It’s insane! And it’s not the code in paint() that is eating up all the CPU, it’s what’s done afterwards that eats the CPU. Even on my Intel Mac, it’s still 20%-25%. Way too much.
On the same Intel Mac, it takes perhaps 5% when using Windows, absolutely nothing compared to the OS X version.
So, has anyone got some clever idea how I can speed up things a little bit? I am not familiar with how OS X works, so I don’t know where to start at exactly…