Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by voodoo child · Aug 21, 2014 at 06:03 PM · textureandroid buildcompression

Apk size does not change significantly even if texture sizes are reduced

Hi! I have an android project.

In Editor Log my texture size was around 42 MB and the complete size was 47 MB and the built apk size was around 15 MB.

So I got into texture compression deeply and I was able to reduce texture sizes to 10 MB. And again with the other sizes(dll,audio) are 5 MB , the complete size is now 15 MB but after building I have apk size as 10 MB!!

So after reducing textures from 42 to 10 MB why i cant see a significant change in final apk size?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rutter · Aug 21, 2014 at 06:06 PM 0
Share

What platform are you building for? Windows standalone? In a Windows build, the .exe file won't contain your textures. Those will be in the Data folder.

avatar image voodoo child · Aug 21, 2014 at 07:31 PM 0
Share

I have corrected my question as my platform is android. I was thinking about apk but wrote .exe as an output by mistake.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by rutter · Aug 21, 2014 at 07:42 PM

Going from 15 to 10 MB is a significant change -- that's a 30% drop!

Compressing textures and audio will often yield the quickest savings in terms of build size. You're already checking your editor log for big assets, which is good.

Remember, though, that Unity needs to include all of the engine files in a build. You can find out how big those are by building a completely empty project. In my experience with Android development, that yields an APK with size around 6-7MB. That can be reduced a little further (check the manual).

Remember also that Unity compresses the files in the APK, on top of whatever compression you're already using. Some asset types tend to compress more efficiently than others. Exact compression ratios for an entire project are difficult to predict, though, given the nature of the algorithms involved.

The APK compression step isn't saving as much space, now, because the assets you're shipping are already compressed. Still, your overall build size is smaller, and that's good.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image voodoo child · Aug 21, 2014 at 08:56 PM 0
Share

Ok lets compare it just for texture vs apk size. I m going to avoid the rest (DLLs,audio,scripts) from the final apk size in my calculation.

I also want to add that compression was made for each texture one by one according to their alpha vs. I did NOT select the compression option in Build Settings.

42 $$anonymous$$B textures creates 10 $$anonymous$$B size in final apk and after compression 10 $$anonymous$$B textures creates 5$$anonymous$$B size.

According to ratio the size that textures grab should be around 2.4$$anonymous$$B..

I really want to know what causes this. Otherwise I will not be thinking about selecting a compressed format for each texture so much detailed for my further developments.

Thanks for your response anyway.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Texture compression distortion. 1 Answer

Texture Compression format for UWP,Texture 0 Answers

Detect Android GPU/chipset at runtime? 1 Answer

Texture DXT5 regression in 2019.1? 0 Answers

Compressing textures for Android, what's different about Normal and Best? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges