-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
None
-
1.2beta4
-
x86
-
windows_95, windows_nt
-
Not verified
The code in the Metal look and feel that initializes the
MetalBumps has an amusing performance glitch.
It does a graphics.setColor on each pixel it draws. On JDK1.2
this causes a pretty steep performance penalty as it causes
cached state to be discarded in the underlying BufferedImageGraphics2D
object.
It turns out that on my 150 MHz Pentium we were spending 5 seconds
during Swing startup (30% of the total) in the MetalBumps code.
Changing the MetalBumps code to avoid doing such frequent setColors
and also fixing a caching bug in BufferedImageGraphics2D (#4146832)
reduced Swing starup time by 5 seconds. ha!!!!
See the proposed fix section for my changes.
graham.hamilton@Eng 1998-06-08
- duplicates
-
JDK-4136682 metal l&f BumpBuffer initialization horribly inefficient
-
- Closed
-
- relates to
-
JDK-4146832 BufferedImageGraphics2D.drawLine does unnecessary work and memory allocation
-
- Resolved
-