Swing uses a property called "opaque" to reduce background fills.
We could use something similar, although we should give it a better
name - not that one comes to me right now :-)
Perhaps some component skins could set a property "MePaintsEverything" :-)

But perhaps you should be looking at
(a) coalescing repaint events
(b) reducing the number of repaint() calls. Often they are
unnecessary, and I've gotten some useful speedups by removing them in
my applications.

On Thu, Apr 16, 2009 at 02:38, Todd Volkert <[email protected]> wrote:
> really nothing we can do to speed up fillRect().  If we could
> magically know that we didn't need to paint because a descendant was
> going to paint over us, that would save a lot, but I don't know how we
> could ever know that...
>
> -T
>

Reply via email to