What I’m using: Java2D, 1.4.2 on OS X
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?