I have access to an iPad 1,2,3, and mini as well as iPhone 4 (mot S) and 5. I’ll be testing on those once I implement the ideas you recommended. The link to the old post is very interesting and I think I’ll be able to apply a lot if it to what in working on. I really appreciate the detailed explanations you guys have put the time into providing. [import]uid: 118346 topic_id: 34999 reply_id: 139579[/import]
Hi all,
Just wanted to provide an update. With your help I was able to get a 1000x1000 grid of 64x64 tiles scrolling great at 60 FPS on iPhone 4 (not S) - that’s one million tiles and it’s only using about .27MB of texture memory with no noticeable load time, so I’m quite happy. I’m going to add a few more parallax layers in to see how that performs. Assume all goes well I’ll tidy up the code and post it back here in case anyone would like to see it.
Thanks again for all of your help. I really appreciate the time and advice here!
Nate [import]uid: 118346 topic_id: 34999 reply_id: 140220[/import]
Hi Bento,
You’re welcome! Out of curiosity, have you created a million displayobjects or just enough 64x64 pixel tiles to cover the screen (that would make 16 tiles wide by 11 tiles high = 176 tiles) ?
I can’t imagine a million tiles working so fast on screen, but if it is you can have tremendous gains by using only 176 tiles and intelligently swapping them in and out of your screen - assuming you are not already doing that.
Cheers, good luck!
Thomas [import]uid: 70134 topic_id: 34999 reply_id: 140221[/import]
@thomas6 - I am doing exactly that, just creating 176 objects from the imageGroup tile set. I think the phone would probably blow up if I tried to create 1,000,000 of them
[import]uid: 118346 topic_id: 34999 reply_id: 140223[/import]
Excellent! As soon as you’ve got the hang of this trick all of your tilemaps will run at blazing speeds - that’s when the fun really starts!
Keep us posted on your progress! [import]uid: 70134 topic_id: 34999 reply_id: 140224[/import]
Hi all,
Just wanted to provide an update. With your help I was able to get a 1000x1000 grid of 64x64 tiles scrolling great at 60 FPS on iPhone 4 (not S) - that’s one million tiles and it’s only using about .27MB of texture memory with no noticeable load time, so I’m quite happy. I’m going to add a few more parallax layers in to see how that performs. Assume all goes well I’ll tidy up the code and post it back here in case anyone would like to see it.
Thanks again for all of your help. I really appreciate the time and advice here!
Nate [import]uid: 118346 topic_id: 34999 reply_id: 140220[/import]
Hi Bento,
You’re welcome! Out of curiosity, have you created a million displayobjects or just enough 64x64 pixel tiles to cover the screen (that would make 16 tiles wide by 11 tiles high = 176 tiles) ?
I can’t imagine a million tiles working so fast on screen, but if it is you can have tremendous gains by using only 176 tiles and intelligently swapping them in and out of your screen - assuming you are not already doing that.
Cheers, good luck!
Thomas [import]uid: 70134 topic_id: 34999 reply_id: 140221[/import]
@thomas6 - I am doing exactly that, just creating 176 objects from the imageGroup tile set. I think the phone would probably blow up if I tried to create 1,000,000 of them
[import]uid: 118346 topic_id: 34999 reply_id: 140223[/import]
Excellent! As soon as you’ve got the hang of this trick all of your tilemaps will run at blazing speeds - that’s when the fun really starts!
Keep us posted on your progress! [import]uid: 70134 topic_id: 34999 reply_id: 140224[/import]