Android Problem with apk size when compiling

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Tilapia, Sep 24, 2019.

  1. Tilapia

    Tilapia Member

    Joined:
    Jul 17, 2019
    Posts:
    7
    I made two games, they have nearly same size (one have 22,7 MB of size and another have 27,3 MB). But after compiling, one game have bigger size than another too much (one have 11,9 MB of size and another have 35 MB of size) although all option before compiling are the same. I can't understand why, anyone could help me to solve this issue?
    See some pic
     

    Attached Files:

    • 1.png
      1.png
      File size:
      74.5 KB
      Views:
      19
    • 2.png
      2.png
      File size:
      76.6 KB
      Views:
      16
    • 3.png
      3.png
      File size:
      11.6 KB
      Views:
      16
    • 4.png
      4.png
      File size:
      8.1 KB
      Views:
      17
  2. Tilapia

    Tilapia Member

    Joined:
    Jul 17, 2019
    Posts:
    7
    Nobody can help me?
     
  3. Amon

    Amon Member

    Joined:
    Sep 13, 2016
    Posts:
    272
    Does one have more sounds than the other?
     
  4. SnoutUp

    SnoutUp Member

    Joined:
    Jun 20, 2016
    Posts:
    289
    Check included files. Usually, when I get APK size spikes it's because some extension added stuff to included files and I forgot to delete those. And I always forget. But it could be because of sounds files too.
     
  5. Tilapia

    Tilapia Member

    Joined:
    Jul 17, 2019
    Posts:
    7
    No my friend, all resource is there
     
  6. Tilapia

    Tilapia Member

    Joined:
    Jul 17, 2019
    Posts:
    7
    Here my included file
     

    Attached Files:

    • 1.png
      1.png
      File size:
      170.4 KB
      Views:
      8
  7. IndianaBones

    IndianaBones Member

    Joined:
    Jul 5, 2016
    Posts:
    2,207
    You are just showing the size of the project folder. This is not that useful in calculating the final size of the APK.

    What takes the most space is usually sounds and sprites/textures.

    Does one game use more and/or larger sprites?
     
  8. Tilapia

    Tilapia Member

    Joined:
    Jul 17, 2019
    Posts:
    7
    No, my friend, all sprite and textures are ok, it's the same at that game.

    But thanks SnoutUp and Amon, finally i found the reason. All sound of my game need compressed. However, i still don't understand why that another game not compressed sound file but still have a tiny size!
     
  9. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,896
    There are a lot of factors in play here... Architectures, how the textures fit on the texture pages (a game with a lot of small sprites will create a better optimised texture page than a game with large sprites), how the original sound was encoded (a 11025 mono ogg will be smaller than a 44100 stereo ogg, etc...), and then you have the code itself. Code, when compiled, can actually create a larger file depending on how the compiler optimises it. Some things that increase the speed of the code at runtime can also increase the amount of code required and so give you a bigger file.
     
  10. studio furukawa

    studio furukawa Member

    Joined:
    Jun 22, 2016
    Posts:
    117
    edit: After closer inspection, it looks like you have different amount of folders in the first 2 images. And last few images your latest version went down in size? Did you do yyc or vm or both?
     
    Last edited: Sep 30, 2019
  11. Tilapia

    Tilapia Member

    Joined:
    Jul 17, 2019
    Posts:
    7
    I said at first topic, all option are the same my friend!
    One more time, thanks for all
     
  12. IndianaBones

    IndianaBones Member

    Joined:
    Jul 5, 2016
    Posts:
    2,207
    It doesn't matter if the options are the same. You have two different games, with different content, as indicated by the different file sizes. So of course there will be a difference in final APK size as mentioned in all the posts above.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice