Hi,
I have 2 questions about Component::paint in juce you may would answer.
I am about optimizing my code to minimize repainting where I have setOpaque to true for
several components i.e. sliders and listboxes. Then I put a DBG statement into its parent
paint methode to see whether that method gets called or not.
I noticed 2 things here that I don't understand:
1)
On MAC:
The parents paint method get called if I set the slider value of one slider with the value of
another one using slider2->setValue(slider1->getValue(), false, false) but if I don't link those two slider and
simply drag a single slider, then it doesn't get called.
Same thing if I update a progressbar with a slider value. The progressbar is opaque but the parents
paint methode still get called. Why is that?
On Windows:
Doesn't matter what I do here, the parent paint methode doesn't get called with
linked sliders and not while dragging a single slider and even the progressbar
doesn't affect the parent paint method (That is what I have expected...)!
2)
The CPU usage of the MAC version of my plugin is about 10% higher than the Windows version.
Is this normal and if yes, could it be related to the above issue?
Thank you for your help!
Joerg
