Okay, I spent a lot of time writing a class that parses an XML file that stores the animation data for my sprites. It basically extracts a bunch of integers that represent the frames, delays, etc. and stores them in an int array in the sprite class. The problem is that while animating, frequently my whole game slows down to a crawl and sprites jump around sporadically as a bunch of frames are missed. This slowness will eventually pass and then everything is fine again until the next time it happens. This didn't happen at all when my animation data was hard-coded in the sprite class. I tried profiling it but I didn't notice anything very unusual.

Uh, my question was, does this sound like an issue with too much garbage being generated?

Thanks for the replies. I tested on Windows, and no, there are no problems there

I profiled it with -Xrunhprof, but nothing really looks out of the ordinary. I don't really know what to look for, though. I played around with the threads and managed to make the stuttering a little less noticeable, but it's definitely still there. At this point I'm not sure whether to just pass this off as another problem with Java2D on OS X, or to continue to look for a solution...

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org