Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Mobile IL2CPP Android

Discussion in '5.2 Beta' started by Jonny-Roy, Jul 10, 2015.

  1. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    It does not like the NDK being in program files folder FYI you'll get:

    clang++.exe: error: no such file or directory: 'Files'
    clang++.exe: error: no such file or directory: '(x86)\Android\android-ndk-r10b/platforms/android-9/arch-arm'

    Quick fix is to move the NDK to the root of your drive, I put it in a nice Android folder, as long as there are no spaces it works fine. But the bad news is currently you have to install Unity in a Path also with no spaces :S
     
    MrEsquire and larku like this.
  2. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Hows is the Android performance, any chance u checked?
    So far in earlier builds not good as per many threads on Android section forum.
    Black Screens and FPS drops?
     
  3. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    So far, just getting a black screen...so not so good! Might be a 3rd party plugin or something just in the process of removing them.
     
  4. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Okay so my Mali-400 Device...BlackScreen just minimises so I can't test.

    Samsung S6 edge:

    Unity 5.2B -> IL2CPP build 45 fps
    Unity 5.2B -> Mono build 43 fps
    Unity 5.1.1p3 -> 37fps

    So performance is vastly improved, but the BlackScreen is back... IL2CPP not sure how much difference it's making, but my project pushes graphics way more than scripts so, it might be I don't see to much.

    BlackScreen bug reported: (Case 711221) BlackScreen then minimises on Mali-400 GPU
     
    larku and MrEsquire like this.
  5. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Thanks for doing the tests and posting some results + the bug reports.
    Nice post :)
     
    larku and Jonny-Roy like this.
  6. Gokcan

    Gokcan

    Joined:
    Aug 15, 2013
    Posts:
    289
    Hi All
    Why I need r10b to compile Il2cpp? Why not latest version?
     
  7. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    I would guess thats the version they was using during dev, the new version would probably work, but I would say safer to stick with r10b for the moment.
     
  8. Gokcan

    Gokcan

    Joined:
    Aug 15, 2013
    Posts:
    289
    I could not find r10b. Where can I download it?
     
  9. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Go to Edit->Preferences->External Tools

    Next to NDK is a download button :)
     
  10. Gokcan

    Gokcan

    Joined:
    Aug 15, 2013
    Posts:
    289
    Preferences window changed:) thanks
     
  11. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Update for Unity 5.2B2...

    Works again on my Mali-400...but...performance has regressed hugely.

    I'm now getting very low framerates, same test as above on same device but on B2:

    Unity 5.2B -> IL2CPP build 15 fps

    Doh!

    Strangely rebuild with Open GL 2.0 only

    Unity 5.2B -> IL2CPP build 30 fps

    Still much slower than B1...
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,437
    What does the profiler say?
     
  13. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    I'll re-install 5.2 B1 and profile both on the S6, see if there is an obvious difference, I was trying to knock up a repro to file a report. I'll post some details tomorrow.
     
  14. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Okay I created a test project:

    Beta 1: 33.0 FPS
    Beta 2: 33.0 FPS

    Set Pass 14
    Draw Calls 525

    Standard shader on all the objects, realtime shadows, procedural skybox...so very strange as thats very good!

    I re-pushed mine...45 FPS...so not sure why the earlier test was so slow. I will have to investigate, possibly a background process killing it.
     
  15. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Device went into Power Saving mode! One to watch, it limits CPU and GPU usage.
     
  16. oscabrg

    oscabrg

    Joined:
    Jul 17, 2015
    Posts:
    21
    One question:
    similar to how IL2CPP brought ARM64 IOS support..does Android IL2CPP in 5.2 brings currently or will bring soon ARM64 support for Android and also all other 64bit support to other archs like 64 bit x86 support and MIP64 support?
    thanks..
     
  17. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Well there is only 32 bit support in the build, but IL2CPP should open up 64 bit, I assume they want to get it stable before exposing that though.
     
  18. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    You have results for Beta 3 Jonny Roy?
     
  19. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Beta 3 just crashes at the moment, it worked for a while with good performance. I'm submitting a bug report, I'll keep you posted, Beta 4 might fix the crash...hopefully!
     
  20. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Just FYI Beta 4 still just crashing so no more testing for the moment... bug reported friday last week: 714758

    Basically it just crashes as soon as it opens, so I don't think it likes my project :S.
     
  21. Alex-Lian

    Alex-Lian

    Guest

    The joys of threading and shadow maps. We should be landing a fix in b5 that hopefully should address this.
     
    Jonny-Roy likes this.
  22. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Alex, that would be amazing, it's not holding up my project as I'm continuing in 5.1, just my testing :)

    Thanks for coming back though.
     
  23. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Beta 5 is now out, no mention of any Mobile changes, but hope it dont crash this time, have fun Jonny
     
    Jonny-Roy likes this.
  24. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Hi Alex,

    FYI the scene still just crashes in Unity 5.2 b5 unfortunately.

    Thanks,

    Jon
     
  25. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,437
    Did you ever get around to reporting it as a bug?
     
  26. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Yes, it was bug: 714758

    I got confirmation that it was reproducible too, so should be all good!
     
  27. Alex-Lian

    Alex-Lian

    Guest

    Very unfortunate. We'll take a look.
     
    Jonny-Roy likes this.
  28. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Thanks Alex.
     
  29. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Hi Alex.

    Latest patch fixed my crash thank you.

    Jon
     
  30. mdrotar

    mdrotar

    Joined:
    Aug 26, 2013
    Posts:
    377
    Referring back to the first post about spaces causing compile to fail, it still has problems in b6. You can now have spaces in the Unity install path but you still can't have spaces in managed DLL file names.
     
  31. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,795
    Are there any noticable performance improvements with Android IL2CPP yet?
     
  32. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    I'll post some more tests soon, I'm nearly finished stage one and so it's a bit more script heavy now, but I'm also leaving on holiday for a week today, so as soon as I get back I'll do a build of each and post the results.

    All I can say is on my Mali-400 device I'm now hitting 25 FPS compared to a max of around 14 FPS on 5.1, but I have been working on various elements relating to Physics which might have improved general performance.
     
    Meltdown likes this.