Search Unity

Scripting Backend: Mono or IL2CPP?

Discussion in 'Android' started by username132323232, Dec 19, 2018.

?

Do you use Mono or IL2CPP for your Android builds?

  1. Mono

    31.8%
  2. IL2CPP

    48.9%
  3. it depends...

    19.3%
  1. username132323232

    username132323232

    Joined:
    Dec 9, 2014
    Posts:
    477
    Do you use Mono or IL2CPP for your Android builds?
     
  2. millefoliumink

    millefoliumink

    Joined:
    Aug 28, 2014
    Posts:
    139
    I've always used Mono because it was default and never looked into it. IL2CPP says it's but for performance, has anyone resolved any performance issues choosing one over the other?
     
    username132323232 likes this.
  3. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    Mono is good for iterations when developing, it's much faster to build at the moment.
    (a script-only iteration feature is also coming soon, making it even faster)
    It is also using JIT, in case you need dynamic code generation.

    On the other hand, IL2CPP is faster in most cases. It is a bit better in terms of security because it requires more effort to decompile the code. It makes use of engine stripping, so final APK size might be lower (but not in all cases). Finally, 64-bit ARM is supported only with IL2CPP, which may become an issue soon, when Google Play requires 64-bit binaries. Possible downside - slower builds, but we are working on improving it.
     
    cmontag and username132323232 like this.
  4. username132323232

    username132323232

    Joined:
    Dec 9, 2014
    Posts:
    477
    That would be great! Any idea about the ETA?
     
  5. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    If I remember correctly, 2019.1 is the version.
     
    username132323232 likes this.
  6. Charlieb928

    Charlieb928

    Joined:
    Jul 28, 2019
    Posts:
    7
    Imo its the worst thing to implement, I keep getting errors stating il2cpp isn't running or cant compile. Never had this problem before as a result I cant update non of my apps. Completely useless
     
    Kaivaan likes this.