title: How to keep fps rate constant in cocos2d
body: <p>I have 3 question.</p>
  
  <ol>
  <li><p>How to keep fps rate constant(almost) in cocos2d.When lots of CCSprite created and removed within a small interval like (5-8) per second is it possible to keep frame rate lmost constant??</p></li>
  <li><p>Is <code>[self removeChild:sprite cleanup:YES]</code> is enough or I should also use</p>
  
  <pre><code>  CCTexture2D *texture = [sprite texture]; [[CCTextureCache sharedTextureCache] removeTexture: texture];
  </code></pre></li>
  <li><p>The following Part of code is responsible for my frame drop.How to accomplish same task in better way?</p>
  
  <pre><code>id fadeout = [CCFadeOut actionWithDuration:1.4f];
  
  id call = [CCCallFunc actionWithTarget:self   
  selector:@selector(RemoveSmashedSprite:)];
  
  CCSequence* sequence= [CCSequence
  actions:fadeout, call, nil];
  
  [smash runAction:sequence];
  </code></pre>
  
  <p>... and...</p>
  
  <pre><code>&gt; -(void)RemoveSmashedSprite:(id)sender
  {
  
  
      CCSprite *sp = (CCSprite *)sender;
  
  
  
      [self removeChild:sp cleanup:YES];  
  
  }
  </code></pre></li>
  </ol>
  
  <p>This is called 5-8 times per second. So the frame rate goes down. Can any one help me?</p>