# How can I load a large tile map with cocos2d?

I am try to design a cocos2d game with a big world. The world's tile map is very big, maybe 20 iPad screen sizes worth of tiles.

I want to know how to load this using a CCTMXTiledMap? If I directly add it to screen, will it use too much memory? If so, is there a solution to solve this problem?

• AS far as I Know the CCTMXTiledMap is not designed for big maps, it 's very slow. – JP Illanes Jun 15 '12 at 20:10
• Consider breaking your map up into smaller maps that connect with each other. – dqhendricks Dec 28 '12 at 0:32

Although the comments suggest that CCTMXTiledMap will perform poorly under large tile maps, it's hard to say in general if that is going to be "slow enough" to be a problem for your game.