English 中文(简体)
co2D框架比率仅为30,没有任何行动?
原标题:cocos2D frame rate is only 30, without any actions?

我在我的指定代表中这样做:[director setAnimationInterval:1.0/60];

尽管如此,我还是用了约30个小点。 令人痛心的是,它目前绝对没有做任何事情。 仅一层的<代码>init/code>只不过是在图像基础上添加6种 sp,没有行动或操作,它们只是出现在屏幕上。 这些间谍活动的总规模约为500克博。 在模拟器或装置上,PS显示大约30个。

如果没有任何其他东西在 app上去,那么这种低标准会是什么原因? 没有定时的更新,完全没有运行;只是展示间谍。

最佳回答

If your sprites are large, and possibly rotated or scaled or with opacity < 255, and you re running this on an older device (1st or 2nd generation), then you may have simply run into the performance limitation of these devices.

You may be able to improve performance in particular if you use large sprites, or sprites that are rotated and scaled, by using CCSpriteBatchNode and a texture atlas to which you add each of the sprite s images. You can also reduce the color bit depth of the textures from 32-bit to 16-bit or even PVR compressed.

如果你改变任何缺省启动环境:例如,将缓冲框架从16比方位改为32比方位,或使宽度缓冲也会降低性能。

由于你只有6个rite,如果你用5、4、3、2、1和没有间谍进行抽样调查,那么你是否有兴趣检验发生什么?

问题回答

暂无回答




相关问题
Cocos2d - Shooting Game Problem

everyone, I made a shooting game just like 1942(classic shooting game),but here s the question, FPS drops to 5~6 when the fighter shoot out a straight line of bullet,about 7~8 bullets in the screen,...

AtlasSpriteManager animation

I am using AtlasSpriteManager and AltasSprite to create frame by fram animation with 1 one file. I wanna write something that at first show a simple picture, without any animation and for example when ...

background moves together with image

I have 4 images and a background. I already about to animate the image to move accordingly. But the back ground is not moving. I am not sure how to make the background move accordingly to the movement ...

NSMutable array invalid after objectAtIndex

@implementation Level @synthesize doors, rooms; - (id) init { self = [super init]; if (self != nil) { rooms = [[NSMutableArray alloc] init]; doors = [[NSMutableArray alloc] init]; ...

How to subclass AtlasSpriteManager in Cocos2d?

I need to create some compound sprites that will all move and rotate together. Since it s possible to change the position and rotation of an AtlasSpriteManager I ve been trying to subclass so I can ...

热门标签