KNOWLEDGE LEVEL: Intermediate
PROBLEM: Software
COMPUTER TYPE: pc
MODEL: 300
RAM: Not related
OS VERSION: NT 4
SERVICE PACK:
DESCRIPTION:
I'm writing a Java animation program showing icons moving from one location to another. The way I animate the object is to calculate the object's position, then display it in every other interval (the interval time I used to create a smooth animation is about 60 milliseconds.)
The problem I'm having is that there's a a short pause in the animation every once in a while. And I believe the reason for that is because of Java's garbage collection. Am I correct? If so, how do I avoid that?
I'm new to animation, are there any good references on animation on the net or the bookstore?
Thanks,
Dave
hello dave,
Are u using the same icon for that animation, or does the browser reload to get a new image ? because than you could use a preload to avoid this.
for more info on animation go to
www.hotwired.com
greetings