Iphone 默认的Cocos2D计划间隔是多少?
在cocos2d中,当您使用默认(空白)间隔参数创建计时器时:Iphone 默认的Cocos2D计划间隔是多少?,iphone,objective-c,cocos2d-iphone,intervals,Iphone,Objective C,Cocos2d Iphone,Intervals,在cocos2d中,当您使用默认(空白)间隔参数创建计时器时: [self schedule:(update)]; //Not a 100% sure this code is correct, but you know what i mean 计时器的运行间隔是多少,我想是1/60,但我不确定。这取决于您的CCDirector设置。如果您正在使用 [[CCDirector sharedDirector] setAnimationInterval:1.0/60]; 或 然后每1/60秒
[self schedule:(update)];
//Not a 100% sure this code is correct, but you know what i mean
计时器的运行间隔是多少,我想是1/60,但我不确定。这取决于您的CCDirector设置。如果您正在使用
[[CCDirector sharedDirector] setAnimationInterval:1.0/60];
或
然后每1/60秒调用一次更新方法
CC_DIRECTOR_INIT();