Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-21-2011, 11:13 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 2
SpLogic is on a distinguished road
Question Game Memory Footprint Guidlines?

I know there is a 20 MB download size limit for the game to be download through air. So the binary footprint is better controlled under this. What about the memory footprint, expecially when I want to support 2nd generation iPod touch? The biggest memory consumer are the images. I currently have about 3 1024x1024 sprite sheet and the memory footprint stayed at about 30 MB. The peak memory usage (during scene transition) is probably higher. In response to memory warning the cached sprite sheet could be purged. But this is an unfinished lite version of the game. The sprite sheet could grow to 4~5 1024x1024 sheet for the lite version and even more for the full version. Would that be too much? Does anybody know how much memory Angry Birds, Cut the Rope and other popular games consume (or any unitility tools that could help check the usage)? Is there a rule of thumb on the memory footprint in general? I am sure there are developers in this nice community who have gone through this exercise and could shed some light on this. Thanks for any insight.

----Ryan
SpLogic is offline   Reply With Quote
Old 08-22-2011, 08:07 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Location: Edinburgh
Posts: 209
Justinmichael is on a distinguished road
Default

Quote:
Originally Posted by SpLogic View Post
I know there is a 20 MB download size limit for the game to be download through air. So the binary footprint is better controlled under this. What about the memory footprint, expecially when I want to support 2nd generation iPod touch? The biggest memory consumer are the images. I currently have about 3 1024x1024 sprite sheet and the memory footprint stayed at about 30 MB. The peak memory usage (during scene transition) is probably higher. In response to memory warning the cached sprite sheet could be purged. But this is an unfinished lite version of the game. The sprite sheet could grow to 4~5 1024x1024 sheet for the lite version and even more for the full version. Would that be too much? Does anybody know how much memory Angry Birds, Cut the Rope and other popular games consume (or any unitility tools that could help check the usage)? Is there a rule of thumb on the memory footprint in general? I am sure there are developers in this nice community who have gone through this exercise and could shed some light on this. Thanks for any insight.

----Ryan
Please, correct me if I am wrong, but I could swear one of my colleagues showed me that you can run xCode memory allocations and open a new app on the device and it will appear. I think you have to load up the profiler outwith xcode though. I'm 90% this was the case. As for footprint, you are supposed to try and run with as little as possible. We used to talk about target mem in the early days, but with so many devices and iOS's now, you are just needing to get it as low as possible and properly handle memory warnings. It's very much a moving target as you can receive memory warnings when your app is running on very low memory but other apps (in the background) are chomping away.

I really wish apple closed backgrounded apps before showing memory warnings to the current app but, alas, my testing has shown that it rarely does.
__________________
Justinmichael is offline   Reply With Quote
Old 08-22-2011, 09:46 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 2
SpLogic is on a distinguished road
Default

Quote:
Originally Posted by Justinmichael View Post
Please, correct me if I am wrong, but I could swear one of my colleagues showed me that you can run xCode memory allocations and open a new app on the device and it will appear. I think you have to load up the profiler outwith xcode though. I'm 90% this was the case. As for footprint, you are supposed to try and run with as little as possible. We used to talk about target mem in the early days, but with so many devices and iOS's now, you are just needing to get it as low as possible and properly handle memory warnings. It's very much a moving target as you can receive memory warnings when your app is running on very low memory but other apps (in the background) are chomping away.

I really wish apple closed backgrounded apps before showing memory warnings to the current app but, alas, my testing has shown that it rarely does.
Thanks a lot for the reply. Looks like we could use instruments to monitor games running on the device. I'll play with it tonight.
SpLogic is offline   Reply With Quote
Old 08-26-2011, 05:30 PM   #4 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 45
Ed Welch is on a distinguished road
Default

you can reduce memory by using PVR or 16-bit textures (if the quality is ok).
I wouldn't bother with memory warnings for a game.
Ed Welch is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 398
14 members and 384 guests
7twenty7, apatsufas, AppsBlogger, comicool, Creativ, Dalia, dansparrow, Duncan C, HemiMG, heshiming, LunarMoon, Murphy, pbart, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:54 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0