Optimizing tiled maps in cocos2d-iphone

Posted by Omega on Stack Overflow See other posts from Stack Overflow or by Omega
Published on 2011-11-13T17:45:27Z Indexed on 2011/11/13 17:51 UTC
Read the original article Hit count: 257

Filed under:
|

My cocos2d-iphone game has tiled maps. The tilesets textures are rather big. I got around 5 tilesets and each one is 2048x2048 (retina).

My maps are around 80x80. They have around 8 layers and each one is obviously using one tileset.

The frame rate falls (it goes around 30 sometimes. I know 30 is rather aceptable, but still, I want 50+).

So given that textures are huge I can't afford to make many layers (since each one loads a texture of these).

So how about I divide my tileset textures into much smaller tilesets (like 1024x1024 each)? That will allow me to use many more layers for my maps, right?

Are there any other tips for huge retina display tile maps?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocos2d-iphone