Hi all!
Recently I upgraded my project from 2020.3.6 to 2021.2.9, Addressables version 1.19.19
My addressables setup is pretty basic: 1 group, couple of small level prefabs, I use InstantiateAsync on Start.
After Editor upgrade Instantiation takes huge amount of time like 3-4 seconds compared to near instant in 2020.3
I tried different approaches, like LoadAssetAsync and Instantiate then, tried WaitForCompletion(), tried splitting my group into multiple group, nothing seems to work.
The one thing that works is Pack Separately but after I do fix duplicate bundle dependency performance drops again.
Please help.
Same issue here. 1.18.19 does not have performance issues, yet 1.19.19 is super-slow.
Unity 2021.2.19f1
Devices tested: Galaxy S21 Ultra, Google Pixel 4a, iPhone 13 Pro Max
Unity 2020.3.* did not seem to have any problems with Addressables 1.19.*
Hey all, just wanted to post what I know about this issue. It appears that there’s some pretty significant performance regressions in the Editor for 2021.2+, from what I understand.
Igor, it’s interesting to me that you say 1.18.19 doesn’t have as many issues with performance as 1.19.19 does on that editor version. From what I’m hearing, the Editor performance is mainly affected by shaders and sprites. I can’t think of any fixes we’ve done involving shaders, but I do know we’ve fixed some bugs with sprites and sprite atlases. It could be that we’re hitting something in the Editor in 1.19.19 due to a bug that we fixed.
There could still be an Addressable issue, I don’t want you to think I’m dismissing that possibility. But, the fact you’re both using 2021.2 and having these performance issues, and I’ve just heard about performance problems affecting that editor version, I think that may be the problem.
If you’re able, please report bugs with Unity regarding this. It’s already high on that teams priority list, but any additional info could help get the problem resolved faster.
Thanks a lot, I have submitted bugreport via Unity’s built-in bugreport sender. Repro steps and example project attached.
Case 1419672
I also had the same problem today. After updating to the Unity 2021 LTS version, the resource loading is slow. So, after starting the project in Unity 2020 version, I downgraded it to Addressable 1.18.19 and pushed it to Github. After that the problem was solved. I hope you can solve the problem too.
As a workaround, you can avoid downgrading to Unity 2020, just downgrade Addressables. Edit Packages/manifest.json file, open project once and then push all the modifications (you’ll have 2 files: manifest.json and packages-lock.json)
I also had similar problem after upgrading to LTS 2021.3.0f1 today. Downgrading Addressables to 1.18.19 helped.
@davidla_unity , is there any place we can track this issue? As you’ve mentioned before, it’s already high on that teams priority list, but looks like we’re lacking some information on whether it’s going to be fixed at all, included in next Unity release, or even if it’s reproducible by the team. If I can help with anything, please let me know. Thanks.
Hey @IgorBoyko so, I looked up that case number you posted and it still appears to be in our QA’s triage queue. Once it’s triaged, I think an issue is created on the public issue tracker. I’d have to double check that to be sure. I can try and ping that team to get more info, but I’m not sure how much good I’ll do. When they’re able to get to triage the ticket they should get back to you via email, at the very least. I’ll keep an eye on it as best I can
Hello and thanks for your reply. I’m checking this thread and the issue daily, no worries
Just an update, we discussed this case today and my team is going to try and get QA eyes on it sooner than later. Nothing super notable, just wanted to post while I was thinking of it.
I had the same issue, scenes which were loading in ~1-2 seconds started to take about 10 times longer to load with addressables 19.19 compared to 18.19 (in my case it happened after upgrading 2020 LTS to 2021 LTS).
Device tested: Oculus Quest 2.
I was able to work around the issue by downgrading addressables to 18.19 while keeping 2021 LTS, seems to be working fine.
@davidla_unity hey, I’m once again reaching out to you because there seems to be no response whatsoever yet. I would also like to mention that I’m a pro license subscriber and this feels kinda sketchy right now. Case ID is 1419672. If there are any questions related to reproducing the issue, or anything I could help with, please let me know. Thanks a lot.
An update! Unity Technologies has successfully reproduced the issue and is on public tracker now: https://issuetracker.unity3d.com/issues/android-asset-loading-speed-is-slow-when-building-for-android-with-addressables-1-dot-19-dot-4-and-above
Thanks to everyone participating in this forum thread. If anyone can vote for the issue, I’d really appreciate that.
One more update: public issue is now on Unity Issue Tracker - [Android] Addressable Asset loading time is increased when Building on Android with Addressables package 1.19.4 and above (moved?), also it’s now on Unity servicedesk with id IN-2283
The issue has been marked as “Won’t fix” because “No fix is planned for this bug”. The… what? Our game is completely unusable because of this. Loading times are increased like mad, creating UI is also super-slow.
I’m also curious … how is this bug being dismissed? The loading time of our app literally increased from ~15s to ~60s - that’s 4 times longer. If this is not considered a regression, I don’t know what is.
The bug isn’t dismissed but there is a related change in the engine code that fixes this issue: Unity Issue Tracker - [Addressables] Bundles get compressed in Android builds. It is marked as Won’t Fix but what it actually means is the Addressables team won’t fix this because the change that is required is somewhere else.
Thanks a lot for looking into it, I really appreciate it! Great to see that it wasn’t actually dismissed and we won’t have to downgrade Addressables version each time we update Unity. Thanks again!
I can confirm that the issue seems to be solved now and Addressables loading speed is back to normal. Unity 2021.3.4f1