Correct. The old
Camera object was removed, but it is still possible to call the
Do you need the old
Camera object ? Why ? We could re-added if needed.
600 * 600 = 360.000 tiles. If you are using 3 layers, then 120.000 tiles per layer.
And each tiles needs 6 indices (we are using
glDrawElements, and using a
short of the indices).
So, you will need 720.000 (120.000 * 6) indices to render one layer.
But since we are using a
short (it saves memory), it is only possible to transfer 65.536 indices per batch call.
That means that no more than 10.922 (65536/6) tiles per batch call.
So no, it you want to create a huge map, you will need to split it in more layers.
cocos2d-x v3.0-beta supports auto-culling, but only for “individual” objects. That means that if you have 600 sprites, it will only draw the sprites that are visible.
And we are treating the whole TMX map is treated as a single object.
Adding support for huge tmx maps is a good feature, but it is not currently planned for v3.0… well, unless someone sends us the patch for it