Hi,
I’ve added explosions to my game, and in the Android device, I get few minor pauses or dropped framerates when the explosions appear… which in code it is creating a display object, loading the image/spritesheet, and then playing the animation - nothing too amazing.
On the simulator and an iOS device, these little pauses do not occur - so I’m thinking it is an Android issue. I’m using build 1151.
I’m thinking I need to load and prepare the explosion image in advance, but this will be complex and possibly expensive considering I will need to prepare a bunch of explosions that won’t be needed for most of the time, and I’ll need to manage a queue to pull them off and play them… not nice but doable if needed. I also don’t know if this will solve the problem given I’m just assuming that is the issue, but obviously I see the pause occur just before the explosion - I guess it could be collision code, but I’d have to strip the explosion code out, test and try to see if that still causes the problem.
Is any of this a typical issue or is something else at play?
G