Search Issue Tracker
Fixed in 2017.1.X
Votes
16
Found in
5.6.0p2
Issue ID
904652
Regression
Yes
[Android] Performance regression when loading a prefab with a lot of child objects using Resources.Load()
To reproduce:
1.Download and open attached "ResourcesLoadBugReport560p2.zip" project.
2.Build and run on Android device.
3.Open profiler in the editor and connect device.
4.Press "Resources Load" button.
5.Notice a load spike in CPU usage.
6.Inspect it and notice that under BehaviourUpdate | EventSystem.Update() | Loading.ReadObject a process named "Loading.ReadObjectThreaded" takes about 300~700 ms to complete.
Expected result: Load time to be about 40~50 ms.
Actual result: Load time is around 300~700 depending on a device.
Reproduced with: 2017.1.0b2, 5.6.0p3
Not reproduced with : 5.5.3p2, 5.4.5p1
DUT:
Verizon SM G930V (Galaxy S7 Verizon), OS:7.0, CPU:arm64-v8a, GPU:Adreno (TM) 530, Build:Verizon/heroqltevzw/heroqltevzw:7.0/NRD90M/G930VVRU4BQA2:user/release-keys
Sony D6603 (Xperia Z3), OS:6.0.1, CPU:armeabi-v7a, GPU:Adreno (TM) 330, Build:Sony/D6603/D6603:5.1.1/23.4.A.1.264/2418263178:user/release-keys
Samsung SM G361F, OS:5.1.1, CPU:armeabi-v7a, GPU:Vivante GC7000UL, Build:samsung/coreprimeveltexx/coreprimevelte:5.1.1/LMY48B/G361FXXU1APB1:user/release-keys
Notes: On 2017 version, the ms seems to fall to around 100 ms, but this is still 2x slower than in 5.5 or 5.4. Prefab has around 650 child objects
Verified with 2017.2.0b2
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
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
hutch_jl
Jan 30, 2018 18:32
For anyone who hits this, 2017.2 does seem to fix it, but if you can't upgrade then doing a programmatic build using BuildPipeline seems to work around it for some reason for us.
ELaino
Jan 11, 2018 09:54
Still not fixed in 2017.1.2f1 both with Mono and IL2CPP
sfilo
Nov 07, 2017 17:49
Using Unity 2017.1.2.f1 and IL2CPP makes the load time faster but it's still at least 4 times slower than the iOS load time.
amjaliks
Nov 06, 2017 13:00
Same here. Tried 2017.1.2f1 and 2017.1.2p2. The issue persists.
sourabhverma
Oct 16, 2017 10:31
This issue still exists in Unity 2017.1 . I am getting 10-20 secs in loading a single asset. Its a nightmare in android.
dosantos_08
Sep 26, 2017 10:39
Same here! I am using v2017.1.0p5 and the bug is not fixed. Any idea if future versions fix that?
elhispano
Sep 26, 2017 10:31
I can't vote because this issue is marked as fixed. ¿How can we communicate with Unity so they can reopen this bug?
This is having a big impact in our release plan.
GeneraGames
Sep 26, 2017 10:30
Hi Guys! Currently we can't release on Android because of this issue. After two weeks and two programmers we couldn't find a workaround.
We have submitted a bug to Unity with an example project where we were able to reproduce the problem but we haven't got a response yet.
Feel free to post your tests/conclusions in this post:
https://forum.unity.com/threads/android-very-slow-loading-of-some-prefabs-in-2017-1.493092/#post-3229673
GeneraCrios
Sep 26, 2017 10:29
We are still facing this issue. Its not necessary that have a lot of child objects in our case.
kokteylgaming
Sep 25, 2017 14:53
Still not fixed in Unity 2017.1.1 using Mono