IL2CPP Android

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

2 Likes

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?

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.

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

2 Likes

Thanks for doing the tests and posting some results + the bug reports.
Nice post :slight_smile:

2 Likes

Hi All
Why I need r10b to compile Il2cpp? Why not latest version?

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.

I could not find r10b. Where can I download it?

Go to Edit->Preferences->External Tools

Next to NDK is a download button :slight_smile:

Preferences window changed:) thanks

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…

What does the profiler say?

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.

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.

Device went into Power Saving mode! One to watch, it limits CPU and GPU usage.

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…

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.

You have results for Beta 3 Jonny Roy?

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!

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.