Search Issue Tracker

By Design

Votes

0

Found in

2017.3.0f3

Issue ID

1002068

Regression

No

[Android] Calls from native Android library via registered callbacks are significantly slower when built with IL2CPP

IL2CPP

-

To reproduce:

1. Download and open attached project.
2. Build and run on any android device.
3. Check the logs via ADB logcat.
4. Notice the outputted logs with the TIME label.

Expected result: Time outputted should be less than 1ms.
Actual result: Time outputted varies from 8 ms to 25 ms depending on the device.

Reproduced with: 2018.2.0a1, 2018.1.0b8, 2017.3.1p1, 2017.2.1p4, 2017.1.3p1, 5.6.5p2

Devices under test:

Google Nexus 4*, OS:5.1.1, CPU:armeabi-v7a, GPU:Adreno (TM) 320,
Build:google/occam/mako:5.1.1/LMY48T/2237560:user/release-keys

Google Pixel 2 XL*, OS:8.1.0, CPU:arm64-v8a, GPU:Adreno (TM) 540,
Build:google/taimen/taimen:8.1.0/OPM1.171019.018/4518263:user/release-keys

Samsung SM G930F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T880,
Build:samsung/heroltexx/herolte:7.0/NRD90M/G930FXXU1DQJ3:user/release-keys

Notes: Issue does not reproduce with Mono scripting backend. With mono, time to finish the call is mostly around 0.00005 which is less than a millisecond.

Add comment

Log in to post comment

All about bugs

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