Hi, i'm trying to decide if I should use object pooling or not. For example, should I create an array of sprites and every time I need to spawn one I just take one out of the array and set it's location. Then when I'm done with it add it back to the array. Or Should I create a brand new sprite each time I need one and release it when I'm finished with it. I'm wondering which way is better for memory and performance. Will creating a bunch of sprites into an array use a lot of memory even if they are using the same texture? Is there very little cost to create a new sprite at runtime making the pool pointless?
Other engines I've worked in have gained significant performance from object pooling, but this is my first project with cocos2d so I have no clue.
Thanks
p.s. I will only have about 10 of these objects on screen at a time, but there will be a few different variations so I would create 3 of each variation in the object pool totaling about 30 sprites in the object pool. At what point does a pool become better. Is this too low to use it?
Also, each of these sprites have a box2d body added to them if that matters