Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 默认的Cocos2D计划间隔是多少?_Iphone_Objective C_Cocos2d Iphone_Intervals - Fatal编程技术网

Iphone 默认的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秒

在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秒调用一次更新方法

CC_DIRECTOR_INIT();