Reduce your Unity Build Size with some quick shrinking Tips (mobile, windows, etc)

Reduce your Unity Build Size with some quick shrinking Tips (mobile, windows, etc)

Jason Weimann

6 лет назад

66,308 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Mamista Games
Mamista Games - 20.08.2023 12:30

thanks

Ответить
Brendon Amundsen
Brendon Amundsen - 10.07.2023 23:35

Utilized this last night, took my game build from 4.29GB to 1.21GB! Thankyou so much Jason!

Ответить
Yusufum
Yusufum - 22.05.2023 19:43

You are the man buddy, just awesome.

Ответить
Hassan ali
Hassan ali - 01.02.2023 10:33

really just can't thank enough love from PK.

Ответить
GeniusK
GeniusK - 28.09.2022 19:35

thanks

Ответить
Luke Johnson
Luke Johnson - 23.09.2022 16:04

You are a legend. I'm currently learning the basics of Unity and trying to upload my first basic mini game to Itch and the build size was over 2gb 😂

Thank you for this! I've not only learned how to reduce build size but also the importance of resources. Optimisation is going to be something I learn next because its amazing how quickly my old computer takes a shit (so to speak). I've subbed! :)

Ответить
Fatin Liyana Jamaludin
Fatin Liyana Jamaludin - 12.09.2022 11:55

for my build size, i already reduce textures and images. but how to reduce meshes size. anyone?

Ответить
Mayur Bhagat
Mayur Bhagat - 25.08.2022 20:02

anything that can help to reduce mesh size ? Some character model takes 200-400 kb and some take 4-5mb
Clueless for that particular part.

Ответить
Enverex
Enverex - 19.08.2022 13:04

One correction here, when using crunch compression, "Compressor Quality" works like it does when making ZIP files, it's not an output quality slider, it's a "how much effort should the compressor put into compressing this" slider and should always be at 100% unless you're afraid your PC will take forever to compress the file. 100% should result in higher quality without any increase in file size (there's typically a slight change in filesize as it's lossy compression anyway).

Ответить
Gaiarus Idle Tower Defense
Gaiarus Idle Tower Defense - 16.08.2022 08:24

Hey Jason

You literally saved our game!
We have 1 question though.

Regarding language files assets. We have alot of different languages and korean and chinese language files alone takes up 64mb each. This is HUGE impact on our game, and would therefore like to ask if you had some sort of guide to reducing this dramacticly.

We use NotoSansKorean + Text Mesh pro.

Ответить
I took a 💩 on a book anyway,
I took a 💩 on a book anyway, - 14.08.2022 17:11

glad any % I can get out of a user's storage space, went from 52 MB to 20 MB

Ответить
Jayadev Haddadi
Jayadev Haddadi - 11.03.2022 11:56

would love a 2022 version of this!
Also what about other categories like Meshs, levels and others?
thanks🙏😊❤️

Ответить
Clint Decker
Clint Decker - 14.02.2022 22:35

You rock, Jason! I shaved about a gig and a half off just from bringing most of my max sizes of my files down from 2048 to 1024 without any noticeable difference in my game!

Ответить
EddieJr Digital Arts
EddieJr Digital Arts - 07.02.2022 05:58

Thank you 🥰
Still saving my GDev life in 2022.

Ответить
AlonePirate
AlonePirate - 01.02.2022 14:56

I'm making a 2D game and i started making yesterday it was 17mb project but today i added only a health bar and damage system and it's 75 mb project how did that happen?


Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 889.3 kb 5.3%
Meshes 0.0 kb 0.0%
Animations 21.3 kb 0.1%
Sounds 0.0 kb 0.0%
Shaders 0.0 kb 0.0%
Other Assets 30.3 kb 0.2%
Levels 37.1 kb 0.2%
Scripts 2.0 mb 12.3%
Included DLLs 13.3 mb 81.7%
File headers 17.9 kb 0.1%
Total User Assets 16.3 mb 100.0%
Complete build size 74.9 mb

Ответить
Versatile Content
Versatile Content - 19.01.2022 02:35

To save you the 8 minutes, just reduce the images and sound files sizes using unity inspector, test it
It won't make a big effect in the game quality but makes the exported file way smaller.

Ответить
Emma Amelia
Emma Amelia - 18.01.2022 13:10

how to reduce shader size ?

Ответить
Jaypee Bolonia
Jaypee Bolonia - 11.12.2021 19:08

THANK YOU SO SO MUCH <3

Ответить
Chris P
Chris P - 06.12.2021 20:28

I'm still looking for the answer to the `What's the minimum file size for a Unity file`. I'm thinking it should varry for other platforms. What can one get `away` with on a mobile project for instance?

Ответить
Nathan Cook
Nathan Cook - 23.10.2021 20:18

Thanku so much! I am going from Android Studio to Unity.

Ответить
be free
be free - 16.10.2021 12:22

Thank you!

Ответить
BurnTilDeath
BurnTilDeath - 13.10.2021 12:04

This info certainly helped me bring a 600 mb PC build down to 300 mb. Sure, some of my larger spritesheets are now a bit blurred around the edges, but it's hard to notice. Will try it with the Android build tomorrow...

Ответить
Miguel ML
Miguel ML - 29.09.2021 16:48

Thanks! It helps me a lot!

Ответить
mariokartgameplay
mariokartgameplay - 07.09.2021 21:36

Thanks for sharing this informations. It is really helping me. Thanks for that.

Ответить
Manolol
Manolol - 13.08.2021 22:07

Is it the best option for players, if i enable cruch compression with 100% compression quality?

Ответить
Slava Zemlyanik
Slava Zemlyanik - 11.08.2021 13:34

Thank you! That's quite informational. Especially for build report.

Ответить
Saiful Islam
Saiful Islam - 08.07.2021 05:45

i was worried about build size but now thanks to u i know what needs to be done

Ответить
Salman syed
Salman syed - 27.06.2021 16:09

Excellent👍👍👍

Ответить
Firoz Jokhi
Firoz Jokhi - 24.06.2021 00:07

Hey Jason! Great video and very helpful! Thank you!

So I did all that for my android game, and got the textures to reduce from 250mb to 180mb. But my final apk size only reduced from 190mb to 185mb. How do I get to reduce the apk size?

Ответить
iamcheeze
iamcheeze - 07.06.2021 07:07

actually saved my life

Ответить
Sylvi
Sylvi - 17.04.2021 10:53

ofc i dont have a build report in my log files....

Ответить
Ioan Florucza
Ioan Florucza - 08.04.2021 22:08

my project have an issue with the size of the shaders:
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 27.7 mb 17.2%
Meshes 389.0 kb 0.2%
Animations 136.0 kb 0.1%
Sounds 1.9 mb 1.2%
Shaders 105.2 mb 65.5%
Other Assets 7.4 mb 4.6%
Levels 884.4 kb 0.5%
Scripts 3.1 mb 1.9%
Included DLLs 13.3 mb 8.3%
File headers 561.7 kb 0.3%
Total User Assets 160.5 mb 100.0%
Complete build size 451.9 mb
Used Assets and files from the Resources folder, sorted by uncompressed size:
85.7 mb 19.0% Packages/com.unity.render-pipelines.universal/Shaders/Lit.shader
4.7 mb 1.0% Assets/@@@GameObjects@@@/MovingObjects/Player/Shaders/DissolveShader.shadergraph
4.6 mb 1.0% Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/UberPost.shader
4.2 mb 0.9% Assets/@@@GameObjects@@@/MovingObjects/Portal/PortalShader.shadergraph
2.0 mb 0.4% Assets/Samples/ProBuilder/4.4.0/Universal Render Pipeline Support/Shader/Standard Vertex Color.shadergraph
1.4 mb 0.3% Resources/unity_builtin_extra

do you have an idea how to solve it?

Ответить
TVRL
TVRL - 16.03.2021 01:37

legend

Ответить
Ankit Singh
Ankit Singh - 09.03.2021 15:16

funny enough I was developing my app and a simple loading sprite sheet animation with about 150 frames took 300 MB size haha it was a nightmare as my app size jumped from 76MB to approx 450+ MB

Ответить
Adebanji Ikumapayi
Adebanji Ikumapayi - 19.02.2021 12:07

Thanks for the video
But my file headers are too large 120mb please how can I reduce it I have tried everything

Ответить
Masterboy's World
Masterboy's World - 10.02.2021 13:26

ty for the tutorial

Ответить
Hotline Agatha
Hotline Agatha - 18.01.2021 13:49

you re the best man

Ответить
Josh Polman
Josh Polman - 20.12.2020 05:12

Thanks man! Such an awesome tip!

Ответить
VaporJem
VaporJem - 10.12.2020 16:52

Literally saved my exam! Went from 600 mbs to 152 mbs. Thank you!

Ответить
S. K. Jagan
S. K. Jagan - 23.11.2020 17:50

Great one, will this work same for asset bundles?

Ответить
The Spontaneous TOMATO!!
The Spontaneous TOMATO!! - 04.11.2020 05:29

you really are the best man! <3

Ответить
Mooooooon
Mooooooon - 22.10.2020 16:53

Converting wav to ogg is working for me . is it good?

Ответить
Petre
Petre - 16.10.2020 15:53

thxs <3

Ответить
Cofeivr
Cofeivr - 11.10.2020 18:31

will this work for avatars? trying to make a 27mb avatar to 10mb so i can upload for oculus quest?

Ответить
Chloe
Chloe - 19.09.2020 06:46

This is super useful, thanks! (Reduced my game size from 120+mb down to ~30ish. I still have more room to reduce it as well!)

Ответить
Bhagyesh Patel
Bhagyesh Patel - 10.09.2020 15:53

Consider i imported some assets and in that some are not used in game but still there in project. Will unity include those unused files in built?

Ответить
s.v. anita
s.v. anita - 24.08.2020 12:20

I know that one

Ответить
Better
Better - 04.08.2020 14:31

My images still same size in LOg,what can i DO

Ответить
Salih Balkis
Salih Balkis - 29.07.2020 10:00

best channel for Unity tutorials

Ответить