求助为什么ccTouchesMoved出现卡顿

我用真迹iphone5 xcode5.0.2

什么代码都没加 就开始add 了一个精灵

然后ccTouchesMoved 只上下移动 偶尔就会出现卡顿

代码

  • (void) ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
    {

    UITouch *touch = ;
    CGPoint touchLocation = ];
    CGPoint currentTouchLocation;
    currentTouchLocation = convertToGL:touchLocation];

    CGPoint lastTouchLocation = ;
    lastTouchLocation = convertToGL:lastTouchLocation];

    // Take the difference of the current to the last touch location.
    CGPoint moveTo = ccpSub(lastTouchLocation, currentTouchLocation);

    CGPoint tempTo = ccp(0, -moveTo.y);
    CCSprite *a = (CCSprite *);
    a.position = ccpAdd(a.position, tempTo);
    }

请问什么原因, 如果这都能卡 那还做个P游戏啊:3:

代码本身应该是没有问题的, 即使不是真机, 在模拟器上应该都是可以的, 一般出现卡顿都是由于大量数据计算或者读取资源造成的

帧数一直是60, 诡异了 我查了好几天 也没解决, 就一个移动代码 啥都没有, 难道是xcode版本问题?

额 还有请问版主 你的10.9 xcode5 跑ios6模拟器卡么