[Solved] Better Repaint Debugging

Are you sure that both r and the context clip region are ‘correct’?

I think you’ll find that you will have previously marked multiple smaller regions as dirty in setNeedsDisplayRectangles, and it is only these regions where CoreGraphics will actually update what is showing on the screen. Both r and the context clip region will be a larger rect that encloses the smaller ones that actually get rendered.

1 Like