Posted on 2003-03-07
I'm having an unusual problem with an animation sequence.
Basically I have a Swing timer updating an image (moves it 1px every 40ms). The problem is, it moves the images about 5px, stops for about half a second, and this repeats. The only other Thread I have created is one that implements Runnable and only refreshes itself every 250ms. The CPU usage is at 100% when this Applet is run.
Whats UNUSUAL is that when I reload the applet a few times using the Applet Viewer it starts behaving normaly and CPU usage drops. Any ideas whats going on here?