Opaque components triggering parents-component paint()


#1

I have a opaque components  which are frequently repainted, but it  that the parents component paint() method is also be called (but the component is not entirely repainted (repaint-debugging) is this the normal behavior?

Max OSX 10.10.3 OS Compaitibly Level 10.6 latest XCode. Is this the normal behavior?

 


#2

ah it seems, osx merges all dirty regions to one big rect, but in this case my parent compentent also gets repainted)

The problem with enable Repaint-Debugging is, that you don't see these repainted regions (only that one which are marked dirty from the juce-side), so i think its useless for MacOSx they way how it works.


#3

Any Ideas what can be done to speed up redraw?


#4

after some investigation it seems, parents-repaint is also called, if there is only one child-component is redrawing and the clipped region is exactly above...


#5

Ah i use a affineTransform to zoom the whole GUI, and it seems thats this completly skips the whole repaint intelligence?

 

 


#6

No.. if you apply a transform to a component then repainting should still work just the same, but obviously the coordinates are relative to the object that you call repaint() on.


#7

mhh then i misinterpted how paintComponentAndChildren() works..., but still have no explantion, need further investigation but have no time yet