Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2020.1.X
Votes
46
Found in
2018.3.14f1
2018.4
2019.1
2019.2
2019.3
Issue ID
1153358
Regression
No
[Android] Loading assets from AssetBundles takes significantly more time when the project is built as an AAB
Repro steps:
1. Download "repro_1153358_1930a1" from the link below
2. Switch build target to Android and make sure that "Build App Bundle (Goole Play)" option is checked
3. Build and Run
4. Wait for the game to go to a screen where some characters and pink textures are seen. might need to double click the screen to skip the intro video
5. Check the device log and look for "xxxxxxx.prefab loaded (yyyyyy)" messages
6. Uncheck "Build App Bundle (Goole Play)" and repeat steps 3 - 5
Actual: The time it takes to load the assets when the project is built as an aab is significantly longer
Reproducible with: 2018.4.1f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a1
Tested and reproduced on these devices:
VLNQA00013, Samsung Galaxy S6 edge+ (SM-G928F), Android 7.0, CPU: Exynos 7 Octa 7420, GPU: Mali-T760
VLNQA00124, Google Pixel 2 XL (Pixel 2 XL), Android 9, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00262, Sony Xperia XZ Premium (G8141), Android 9, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00015, Samsung Galaxy Note8 (SM-N950W), Android 8.0.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
Notes:
- Asset compression method and scripting backend have no influence on this behavior
- This issue doesn't reproduce with just loading an enormous amount of assets
- This issue doesn't reproduce with just loading the exact same assets that are troublesome
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
tomtominc
May 06, 2022 14:47
The problem persists in 2020.3.11f1 - was working in Unity version 2018 (need to update my app for the new Google Api and of course I've had many issues)
nik_d
Jan 28, 2020 08:06
Here is the workaround for any version:
https://forum.unity.com/threads/streamingassets-files-are-compressed-in-apk-when-build-app-bundle-google-play-option-is-used.739967/#post-5267379
On the Unity side - 'noCompress' option in generated 'build.gradle' file should be corrected.
philspitlerSF
Jan 12, 2020 07:16
I'm having the same issue using Unity 2019..2.15.. I tried using an OBB file instead but couldn't get that uploaded.
Unity_User_2
Aug 15, 2019 09:04
Unity 2019.2: problem with all StreamingAssets files which have uppercase letter in their path (relative to StreamingAssets).
//Directly in StreamingAssets folder or in a subfolder does not matter.
imaginalis
Aug 10, 2019 14:42
Will bundletool be updated in Unity 2018.4 as well soon?
imaginalis
Jul 31, 2019 11:46
Just tested it on 2019.2 that was released yesterday and it seems to work fine now. I saw in the changelog that bundletool was updated so that's what probably fixed it (at least for my case).
imaginalis
Jul 26, 2019 07:13
For us it's loading data from Asset Bundles slower only with LZ4 compression used for Asset Bundles. While using LZMA it works normally. However LZMA Asset Bundles take a lot of time to load, like 10s so that's not an option as well.
imaginalis
Jul 25, 2019 14:58
Any progress on this one? For us this makes AAB unusable basically for any project. We really need this fixed.
lovelysidhu
Jul 21, 2019 13:12
Hii there,
I have same problem please help me.
Regards,
Lovely Sidhu