Hi!
I have the following problem,
My game is running at 55,60 fps constantly, but sometimes (especially some seconds after it starts) the fps drops, for a momment it's like it jumps some steps, then it goes back to 55 - 60 fps.
I am using chipmunk and i have tested it with cocos2d v0.72 and now on 0.8, it happens on both (i think a little more on 0.8 or at least it is more evident)
I have tried to isolate the problem, but it seems to happen "at random", i mean it does not happen when doing anything in particular or anything intensive...
I won't paste any code, because i wouldn't know what to show you since it could be anywhere, but i have already donde the following without any different result:
- Play with the chipmunk configuration: reduced steps, iterations,etc: the game goes faster overall but the random "hiccups" remain
- there are like 30 chipmunk bodies, which i create on initialization, i keep them out of screen, and use them accordingly (i have double checked that they are not created in the same place, out of screen thus increasing collisions...)
I have tried reducing the quantity to even 2 of them and the problems remains...
I can't remember what else i have tried... It isn't THAT big issue, but once, the leap was so big, the player ended out of screen... (it happened once out of 100 playthroughs, but it worries me...)
What i would like to know if there is something i am missing, or if this is some "normal" behaviour...
Sorry for the vague description and the very long post.
Thnaks!