Search Unity

[Solved] IL2CPP slow performance with physics on Android

Discussion in 'Editor & General Support' started by AllanRW, Jun 3, 2019.

  1. AllanRW

    AllanRW

    Joined:
    Nov 6, 2014
    Posts:
    25
    Just changing from Mono to IL2CPP cause these physics spikes on profiler that slow down my Android app, any idea on how to fix it?

    *SOLVED: Fixed, it was a problem with a touch/drag script, removing it fixed the issue.

    Screenshots:

    upload_2019-6-3_22-35-54.png
     
    Last edited: Jun 7, 2019
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,589
    Might want to post this over in the physics or Android forums, and I'm not sure what the point is of including screen shots the size of large thumbnails.
     
  3. AllanRW

    AllanRW

    Joined:
    Nov 6, 2014
    Posts:
    25
    ok, will post there and also fixed the screenshots size... ;)
     
  4. Marcos-Elias

    Marcos-Elias

    Joined:
    Nov 1, 2014
    Posts:
    124
    What script were you using, was it based on a popular open source control?
    I'm facing the same problem but I don't know what to do, build is worse in many devices with IL2CPP on Android.
     
  5. AllanRW

    AllanRW

    Joined:
    Nov 6, 2014
    Posts:
    25
    No, it was a touch related script that I've bad written myself! :p
    You can use the profile tool or disable scripts that you have on your game one by one until you find which one is causing the slowdown.
    Good luck!
     
    Marcos-Elias likes this.
  6. Marcos-Elias

    Marcos-Elias

    Joined:
    Nov 1, 2014
    Posts:
    124
    Thanks, my project is huge, Profiler is not helping that much because this happens only on certain devices, not all hehe. But I got rid of all Debug.Log, it seems to help a lot.
     
unityunity