Search Issue Tracker

By Design

Unknown (hidden) 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X

Votes

0

Found in

2021.3.12f1

2022.1.21f1

2022.2.0b12

2023.1.0a16

Issue ID

UUM-17527

Regression

Yes

[Android] Size of a built project is higher in comparison with other Unity versions

--

-

How to reproduce:
1. Open the user’s attached “ProjectTest” project
2. Set the “Scripting Backend” to IL2CPP and “Compression Method” to LZ4HC
3. Build the “SampleScene” Scene for Android
4. Observe the built “apk” size

Expected result: Size is 7.9 - 8 MB and not more
Actual result: Size is more than 8 MB

Reproducible with: 2021.2.0a7, 2021.3.12f1, 2022.1.21f1, 2022.2.0b12, 2023.1.0a16
Not reproducible with: 2020.3.41f1, 2021.2.0a6

Reproduced on: macOS 12.6 (Intel)

Note:
- It seems that it doesn’t differ which SB nor CM was selected for the build
since the size also varies with “Mono” SB and other CMs. However, the customer
asks to test with the chosen settings as in the 2nd step, and it builds faster
- Even though 0.8 MB may not be seen as a huge difference, the larger a project is,
the larger the apk file. According to the customer, their build size increases by 20 MB.
Another user from the forum thread below stated that after the update “apk” size increased from 1 GB to 3 GB
- https://unity.slack.com/archives/C0147DRQFSR/p1667997355675089

  1. Resolution Note:

    Size change is by design because Vulkan/SPIR-V are known to be larger than OpenGLES3. Upgrading the project leaving OpenGL3 as graphics API keeps the same executable size.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.