Search Unity

[SOLVED?] IL2CPP taking 20x time on 2020.1 alphas with DOTS packages

Discussion in 'Entity Component System' started by rz_0lento, Feb 13, 2020.

  1. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    I don't know if this is a known issue but IL2CPP builds with Unity Physics and Unity Mathematics stall the DOTS builds totally on 2020.1 alphas for me (tested using a22 + a23 and Burst 1.2.1, 1.3.0-preview.2 and 1.3.0-preview.3). Especially Unity Mathematics stays behind rest of the compilation for ages and it's only utilizing one hw thread / one c++ compiler as well (so 5% load of the CPU while waiting for it to finish for last 15 minutes).

    My basic test scene only has simple level that has one plane that's converted to ECS using Convert to Entity.
    Same setup took IL2CPP 1 minute and 10 seconds to build on first run when trying this same scenario on 2019.3.1f1 and Burst 1.3.0-preview.2. On 2020.1 it takes about 20 minutes total on my 12-core Ryzen.

    I used VS2019 v16.4 and c++ toolchain v14.24 on both 2019.3 and 2020.1.

    I did notice 2020.1 changelogs had
    which could be related to this issue.
     
    Last edited: Feb 14, 2020
  2. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Sent issue report along with repro project, case #1219572.
     
    JoshPeterson and JesOb like this.
  3. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    yup ...
    i'm facing this issue on 2020.1.0a22 :]
    seems that VC compiler takes 8% of my CPU to process !?
     
  4. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    I don't know what did fix this but I don't get this anymore on a24 with latest dots packages.