1) Did you try the -Xinc option for Hotspot (incremental gc)
2) Eliminate all object allocation if possible, and try to reuse objects
   as much as you can.

"Gold, Rich " wrote: 
> I have a fairly straightforward Java2D application up and running. It scrolls a 800 
>by 600 window over a large image (2000 by 4000 pixels) and does some animation on top 
>of the image. The scrolling is done using Swing and the animation is Java2D.
> 
> It works just fine except that every so often the smooth scrolling just stops, or 
>stutters, and then starts up again. It is quite annoying and if I can't get rid of 
>it, it will make the application useless, since the point is the smooth scrolling.
> 
> I first got it up and running with the original vm. I have now switched to hotspot 
>hoping that would help, but it does not. I am assuming that this is a garbage 
>collection problem. Does anybody have a solution to this problem - which essentially 
>makes Java2D professionally useless? The solution could be a real one (like I am 
>setting something wrong) or a work around (like only have static variables - just 
>like BASIC).
> 

-- 
Augusto Sellhorn
GE Harris Energy Control Systems
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to