Hi Eli,

On Tue, Nov 18, 2003 at 04:07:24PM -0800, eli curtz wrote:
 > I'm working on a suite of simulation software which does a lot of drawing
 > between BufferedImages and I have run into a memory issue with
 > Graphics2D.drawImage(Image, AffineTransform, ImageObserver), where
 > AffineTransform includes a rotation.
 >
 > According to J-Sprint 99%+ of my memory allocation is occuring when
 > DrawImage.transformImage calls
 > IntegerInterleavedRaster.createCompatibleWritableRaster(int, int). This is
 > causing massive thrashing in the garbage collector and horrible stuttering
 > in my graphics.
 >
 > Anybody have any advice on how to eliminate this? The source and destination
 > images are identical format. I'm not even sure what it's doing - creating a
 > temporary raster to draw the rotated image into?

  That's exactly what it's doing.

  What java release are you using?
  We've improved our memory usage pattern somewhat in 1.4.1, I
  believe, by using our own thread to dispose of Java2D-generated
  garbage.

  Thank you,
    Dmitri

 >
 > thanks,
 > eli curtz
 >
 > [EMAIL PROTECTED]
 >
 > ===========================================================================
 > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
 > of the message "signoff JAVA2D-INTEREST".  For general help, send email to
 > [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to