Many sprites 64x64 and zooming

Hello!

I want implement sea. Now i have 64x64 tiles display.newImage(“sea.png”) at one time, it works very slow. My camera could zoom in and zoom out, and i can see from 2x2 to 16x16 sprites at one moment. What is the best way of optimize my fps?

I need detect only visible tiles and add only they to my group, is it?
[import]uid: 151453 topic_id: 35164 reply_id: 335164[/import]

I assume you are putting all tiles into a group, and then scaling the entire group for zoom-in and zoom-out? This would be the correct method.

Brent [import]uid: 200026 topic_id: 35164 reply_id: 139868[/import]

Yes i zoom-in and zoom-out group. And now on 4S i have about 12 fps. [import]uid: 151453 topic_id: 35164 reply_id: 139870[/import]

Hi @est1908,
Can you please post some code here within <code> tags? For example, the code where you display the tiles, and also where you perform the scaling. I might be able to detect something in there…

Thanks,
Brent [import]uid: 200026 topic_id: 35164 reply_id: 140019[/import]

I assume you are putting all tiles into a group, and then scaling the entire group for zoom-in and zoom-out? This would be the correct method.

Brent [import]uid: 200026 topic_id: 35164 reply_id: 139868[/import]

Yes i zoom-in and zoom-out group. And now on 4S i have about 12 fps. [import]uid: 151453 topic_id: 35164 reply_id: 139870[/import]

Hi @est1908,
Can you please post some code here within <code> tags? For example, the code where you display the tiles, and also where you perform the scaling. I might be able to detect something in there…

Thanks,
Brent [import]uid: 200026 topic_id: 35164 reply_id: 140019[/import]