Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 4.6 Pro Doubles APK Size

Discussion in 'Editor & General Support' started by Ogien, Mar 8, 2015.

  1. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    I recently purchased Unity Pro and I rebuilt one of my Android projects. However the output jumped from 49MB to 80MB. I tried it on two Mac Books and I got the same result. I kept all the default options from before except I think now Dynamic Batching is on.

    Please help, thanks
     
  2. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    556
    you are probably using the FAT Binary.... try changing it to arm v7 only... this will reduce the size of the build.
    Not many android x86 devices around anyway.

    If you don't know what i'm talking about go to build settings > device filter. Make sure you are in an android project first of course.
     
  3. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    No I checked for that its not a Fat binary, and that only increases the size by a few Megabytes, not 30.
     
  4. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    Please help I tried checking off Dynamic batching GPU Skinning, anything I can think of that is Unity Pro only. and it is still 80MB. This only happened once I upgraded to Pro, the regular version never did this.
     
  5. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    Unpack the APK file (it's a ZIP) and see what files get bigger.
     
  6. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    It unzipped it into a 240MB folder
     
  7. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    New projects seem to be fine its just that one project, maybe I should delete one of the project folders to rebuild?
     
  8. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    I tried reimporting all assets no luck, can someone help me please.
     
  9. ForceVFX

    ForceVFX

    Joined:
    Jan 21, 2011
    Posts:
    612
    Did you look at - Console : Open Editor Log...Look at the the list again...byte by byte....is the final size..the same as the app size?
    Do you have the old build log?? can you compare the two..line by line...isolate bloated or duped files/images/dll's..??
    (I also... overshot my previous 50 mb apk by 30 MBs to 80 Mbs
    Textures 85.9 mb 51.8%
    Meshes 5.8 mb 3.5%
    Animations 124.9 kb 0.1%
    Sounds 4.2 mb 2.5%
    Shaders 1023.5 kb 0.6%
    Other Assets 2.9 mb 1.7%
    Levels 58.3 mb 35.2%
    Scripts 1.2 mb 0.7%
    Included DLLs 5.2 mb 3.2%
    File headers 1.2 mb 0.7%
    Complete size 165.7 mb 100.0%
    Curious about "Levels"?? Occlusion Data??

    the answer you seek...is being written by Unity...somewhere.
    p-
     
  10. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    Yes I did look, I did not see anything weird, I just returned the Pro license back to the server and did another build, went back to 49MB so I will now do a diff on the editor log and see what the difference is (if any)

    I just thought I can't be the first guy to run across this, I can replicate this on 2 projects so far every time. I must be some stupid option or feature in Unity Pro that is adding this size.
     
  11. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    It seems to be levels not sure why

    Levels 21.1 mb 22.1%

    vs

    Levels 121.7 mb 63.3%
     
  12. ForceVFX

    ForceVFX

    Joined:
    Jan 21, 2011
    Posts:
    612
    now that we isolated it, hopefully someone in the know, could explain what is included in that levels subgroup.
    I'll do a little bit of a search myself.
     
  13. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    It was Static batching. Why would that cause the level increase, its available in the Non Pro version
     
  14. Carpe-Denius

    Carpe-Denius

    Joined:
    May 17, 2013
    Posts:
    842
    Maybe it was deactivated before?
     
  15. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    No I always had Static Batching on, and many objects marked as Static. If I have Dynamic batching turned on do I need Static at all?