Again: unnecessary Calls to paint() MacOSX

Awesome! JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS makes my UI much more responsive!

I have a related request: before discovering it I tried to use JUCE_ENABLE_REPAINT_DEBUGGING (brilliant concept btw!) but it misleaded me to think that some components are not using the CPU being redrawn when actually they were, which I found with instruments, and breakpoints, and I was doubting my process and finally with making a paint method log I found that they are indeed getting drawn…

I’d suggest to add a compile time assert for JUCE_ENABLE_REPAINT_DEBUGGING that !JUCE_MAC || JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS, or when it is enabled actually changing the clip to CoreGraphics’s effective clip rectangle.

Cheers! Yair

3 Likes

I recommend using Quartz debug to see what is actually getting needlessly repainted by the OS.

2 Likes