Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I´m creating Groups that contains Sprites and adding bodies with box2D, but when I create many of this my animation gets very slow. How can I handle it?

share|improve this question
You have to provide more specific information about what you are doing. Also, what does "my animation gets very slow" mean? – flai Mar 1 '12 at 17:09
I'm creating many Sprites and I add them to my stage, over 100, and the frame rate gets low (the slow animation) any clue ? – magorich Mar 1 '12 at 19:18
Can you show the code for how you create, store, and update the sprites? – Steve Blackwell Mar 2 '12 at 2:02

Have a look at this if you're using spritebatch

And also if your bodies are static terrain and don't animate, then you should be using SpriteCache. Ex. you are building tile based terrain

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.