Search Issue Tracker

Fixed in Unity 2017.1

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()

Mobile

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Workaround is possible

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

Comments (18)

  1. 225abb665ba6c50e7156c1652160150c?d=mm

    kokteylgaming

    Sep 25, 2017 14:53

    Still not fixed in Unity 2017.1.1 using Mono

  2. 4bb1ac48fb2ed573f7601ce9aee37ce1?d=mm

    samzgamz

    Sep 15, 2017 20:59

    The issue is marked fixed in 2017.1.1p1. I have tested it out and the performance is better but it is still not good enough. Time has reduced from more than 10 seconds but it is still taking 2-3 seconds where earlier it would be near instantaneous. Hope this issue is fixed completely soon.

  3. 4bb1ac48fb2ed573f7601ce9aee37ce1?d=mm

    samzgamz

    Sep 15, 2017 15:30

    Seeing the same issue in 2017.1 using IL2CPP. Tested on Moto G5s Plus.

  4. 0674041c71805652222f9b2ffa39c626?d=mm

    frankadoriv

    Sep 04, 2017 12:44

    Not fixed in 2017.1.0.p5 using Mono

  5. 7745a7ee2433ddc2296ca0463fd82205?d=mm

    conaman7

    Aug 10, 2017 05:21

    Present in 5.6.1f1. please fix it.

  6. 47b4f8b76c0df6094e98ff1050addc0a?d=mm

    archer1013

    Aug 01, 2017 03:08

    Can you fix it in 5.6.2? Thx!

  7. 8b116730ba7a22d8330ca9f3626b6bfb?d=mm

    SevenPiratesGames

    Jul 26, 2017 03:59

    Is there any patch for 5.6.2 since we can not upgrade to 2017 now!

  8. Dafdc4985701b5373c221d86270a9295?d=mm

    FDT

    Jul 21, 2017 11:02

    sorry, fixed in 2017.1 BUT ONLY USING ILCPP

  9. Dafdc4985701b5373c221d86270a9295?d=mm

    FDT

    Jul 21, 2017 10:55

    not fixed in 2017.1

  10. 352ef30735c4a448eb649677cfce66b1?d=mm

    Mahesh218

    Jul 06, 2017 12:24

    Is there way to make it load time similar to iOS?

All about bugs

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