Saving CPU while repainting component and its child components with setBufferedToImage

There is no need for children to have setBufferedToImage() called, the component that has setBufferedToImage() called on it will repaint all it’s children, it does not paint just the one component. I was also initially confused by this, see this thread CachedComponentImage invalidation logic

1 Like