★ TouchArcade needs your help. Click here to support us on Patreon.

Making project smaller

08-21-2009, 06:48 PM
#1
Joined: Feb 2009
Posts: 77
Making project smaller

How can I get my application below 10 mb? I have it at 12.7 right now and I removed the sounds and nothing happened. Please help me...

Impossible Exam on the App Store: http://itunes.apple.com/WebObjects/M...296005190&mt=8
08-21-2009, 07:34 PM
#2
Quote:
Originally Posted by AAApplications View Post
How can I get my application below 10 mb? I have it at 12.7 right now and I removed the sounds and nothing happened. Please help me...
Are there any extra frameworks in there? Make sure you are really deleting and removing assets too by the way. If you remove a file, your size should go down. Make sure you do a clean and then a build.

Xenovoid - FREE 4X Galactic Conquest MMO for iOS, PC, OSX, and Linux
JOIN THE FREE BETA @ Xenovoid.com

08-22-2009, 08:20 AM
#3
Joined: May 2009
Location: UK
Posts: 741
Quote:
Originally Posted by AAApplications View Post
How can I get my application below 10 mb? I have it at 12.7 right now and I removed the sounds and nothing happened. Please help me...
I suspect we need a little more information on what is using the space to help you on this but you could try:

Look for files that aren't loaded, I know I have a few in my current app that I'll need to clean up before I submit it.

If you are using a lot of texture, try compressing (some of) them. For example, compressing a single 1024x1024 from 32bit to 4bit compressed could save all the space you need and more.

Maybe you have a lot of large level files or similar that could be compressed through a simple RLE algorithm or, if you need more than that, you might want to look into a zip library like this: http://www.winimage.com/zLibDll/minizip.html Note that I have no idea if that lib is any good or easy to use but I saw it mentioned on the official dev forums recently.

-=< Fat Owl With A Jetpack >=-
-=< Topia World Builder >=-
-=< Twitter >=-
-=< Blog >=-
08-22-2009, 04:02 PM
#4
Joined: Jul 2009
Location: Zgrunturos and San Francisco
Posts: 595
As GamerOutfit said, you need to make sure you really deleted your sound files. Especially since you said there was no change when removing them. There should at least be a little change. And as pretty much everyone has said, remove what you don't need.

With the textures, bit reduction is a great way to save a lot of space. Don't, however, underestimate the power of using assets that are either 16bit (RGBA 5551) or even palettized data. Of course 4-bit gets you huge gains, but if supporting 4-bit degrades the quality of the image too much, those other lower bit-depth formats work great.

Also remember that the download size will be the size of your application after you ZIP it for submission. Not the .app size you see after the build. Ours before the ZIP was around 24MB and zipped down to 5.4MB.

Go to where the basketball court and arcade go 1 on 1 with Hoops Madness!
08-22-2009, 05:53 PM
#5
Joined: May 2009
Location: UK
Posts: 741
Quote:
Originally Posted by mobileben View Post
As GamerOutfit said, you need to make sure you really deleted your sound files. Especially since you said there was no change when removing them. There should at least be a little change. And as pretty much everyone has said, remove what you don't need.

With the textures, bit reduction is a great way to save a lot of space. Don't, however, underestimate the power of using assets that are either 16bit (RGBA 5551) or even palettized data. Of course 4-bit gets you huge gains, but if supporting 4-bit degrades the quality of the image too much, those other lower bit-depth formats work great.

Also remember that the download size will be the size of your application after you ZIP it for submission. Not the .app size you see after the build. Ours before the ZIP was around 24MB and zipped down to 5.4MB.
I hadn't realised that. Thanks for pointing it out though as my app goes from 10.7 to 7.4 megs when I zip it. One less thing on my todo list

-=< Fat Owl With A Jetpack >=-
-=< Topia World Builder >=-
-=< Twitter >=-
-=< Blog >=-
08-22-2009, 07:18 PM
#6
Joined: Dec 2008
Location: The Land of The Rising Sun
Posts: 146
Just note as well that, after you submit the program to Apple, the size of the application on the iTunes Store tends to be a little bit bigger than the .zip you submit, although I think it is usually less than a megabyte difference, so if you are at 7.4 MB, you won't need to worry.

Developer of Petri. Available now on the iTunes Store.

These days I work with Tonchidot on Sekai Camera.
08-23-2009, 01:30 PM
#7
Joined: Jul 2009
Location: Zgrunturos and San Francisco
Posts: 595
Quote:
Originally Posted by gillygize View Post
Just note as well that, after you submit the program to Apple, the size of the application on the iTunes Store tends to be a little bit bigger than the .zip you submit, although I think it is usually less than a megabyte difference, so if you are at 7.4 MB, you won't need to worry.
Youch! Good to know. We've only submitted one app to date, which happened to have the same download size as our ZIP.

With that good warning issued, everyone else should also remember that the more you pre-compress, the less benefits you will have on the ZIP as well as the Apple compression for the download to the device.

Go to where the basketball court and arcade go 1 on 1 with Hoops Madness!