This is the code that I used in CCTouchesMoved to create particle effects in touching places. But when using this, the FPS drops to 20, so far as concerns the movements! I tried to reduce the life and duration of the particles (you can see this in the code) .....
How can I fix the problem of reducing FPS when moving using particle effects?
- (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; location = [touch locationInView:[touch view]]; location = [[CCDirector sharedDirector] convertToGL:location]; swipeEffect = [CCParticleSystemQuad particleWithFile:@"comet.plist"];
Please help me ... I tried with different particles and minimized life and duration, but it does not work! Any new ideas for this? or corrections for what i did?
source share