Search Issue Tracker
By Design
Votes
4
Found in
5.5.0p1
Issue ID
861263
Regression
No
[iOS] [Asset Bundle] Asset Bundles take excessive amounts of memory
Reproduction Steps:
1. Download User provided stripped projects
2. Open "AssetBundlesVsResourcesPrefab" project
//---- Test loading from Asset Bundles ----//
3. Build Asset Bundle ("Assets/AssetBundles/Build AssetBundles")
4. Store assetBundles somewhere (Tested on macOS Apachectl)
5. Change assetBundle url in file "AssetBundleManager/Resources/AssetBundleServerURL"
6. Build and Deploy to iOS device
7. Look in Xcode, how much memory does it take
8. Click GUI button "Load From Asset Bundle"
9. Look in Xcode, how much memory does it take now
//--- Test loading from Resources ----//
10. Rename "AB" folder to "Resources"
11. Build and Deploy to iOS device
12. Look in Xcode, how much memory does it take
13. Click GUI button "Load From Resources"
14. Look in Xcode, how much memory does it take now
Note: Test results are down in the edits
Expected results: Equal or just a bit larger amounts of memory are used by asset bundles.
Actual results: On larger project difference between resources and asset bundles get pretty big (80MB difference on original user project).
Reproduced on devices: iPhone 6 Plus iOS 10.1, iPhone 7 Plus iOS 10.2
Comments (1)
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
christiancrt
Oct 29, 2017 21:35
Still present in 5.6.4 on iPad mini 2 with iOS 10.3.3 and iPod touch with iOS 9.3.5.
Since unloading a bundle on iOS seems to cause some references within scenes to become null when reloaded from AssetCatalogues after unloading (might be an unreported bug), assetBundles and ODR are practically unusable at this moment.
I really wonder how others get around this.... almost qustioning my sanity here, because this is so essential that it is hard to belief that nobody else noticed. My fix for now will be reducing the number of individual bundles to an absolute minimum.