- Home /
App Builds are very large
Hey just wanted your guys opinion on something. Ive been working on this app for a very long time and have pretty much made all the levels (36 to be exact). I have a total of 37 scenes for the project (all the levels plus one extra for the main menu). For testing purposes, i build just the main menu and the very first level to test on my android. It take a long time to build just the two scenes and when it does, its over 66mb! That sounds like a lot for just a menu and one level of a 2D platformer that only takes about four minutes to complete. The game is similar to Mario so imagine the first level in that game, kind of. Is this a huge amount or what? I would hate to see how big the whole game would be, I feel like my computer will crash before it can successfully build the whole thing. When I do build and publish will it become compressed? I admit that I do have a lot of assets but if they are not being used in the actual game do they still take all that memory? Ive been working so hard on this and I would hate the game to be too big to upload or too big for anyone to want to download. Any advice?
Answer by Kwergan · Dec 05, 2017 at 02:16 PM
Any textures? The art side of the game usually makes up the most of the size of a game. A single uncompressed image might be a third of that size. Mobile games are usually optimised with the size of textures and number of different textures used. If you are using .png formats for images or .wav for audio (which are usually uncompressed formats) that will also contribute to the size of a build. The time a game takes to build is largely due to the number of smaller files rather than the overall size.
Ill have to check how many textures im using. $$anonymous$$y images are mostly pngs I think. I read somewhere in the Unity Documentation that it is optimized to use all images the same so even if I make them in photoshop and save them with lots of layers, it will still be "flattened" when published. I just did a test and out of a 70mb build, my main menu is about 65mb of it. Im not sure why it is so large. It has the main menu, a play button that will take you to the world select screen which will then take you to the level select. Then the menu also has the shopping button that takes you to where you can buy items. All in all I would say that the $$anonymous$$enu scene has 4-6 screens layers on top of it. That still doesnt sound like much though as besides the images, its mostly script files. Do you think that it will actually be that much when loading it to the storefront? How big is too big?
I'm not sure I can comment on uploading to a store. How big are the images on their own?
Answer by NickJVaccaro · Dec 05, 2017 at 03:29 PM
You can get a lot of build info from the editor log, see this article: https://docs.unity3d.com/Manual/ReducingFilesize.html
66mb isn't huge, though for a mobile game it's a bit on the larger size. Once you get above 100mb, at least for google, you have to split it up into multiple files. Unity has a way of handling this, but I personally never got it to work with my games. I would suggest going through the editor log and seeing what exactly is taking up the most space and trying to lower it from there.
Also note that just because 2 scenes take up 66mb, that doesn't mean that number is going to scale linearly as you build more scenes. It's possible that ALL of the art is being loaded up front, so each new scene might only add a few kb of data.
Your answer
Follow this Question
Related Questions
Does Unity decompress Truecolor RGBA format textures when loading? 0 Answers
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Does removing scenes from build settings reduce the file size of a game? 2 Answers
Building with Extensions 0 Answers
Not building anything and there is not even a build popup (win 10) 0 Answers