Search Unity

Question Reload Script Assemblies and Entities.ForEach()

Discussion in 'Entity Component System' started by RoughSpaghetti3211, Jul 27, 2021.

  1. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,708
    Ive noticed that my reload assembly time is going up a lot using Entities.ForEach(). What can I do to improve it? At the moment it costing me more than 50% of my time
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,779
    Did you try using asmdef's
     
  3. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,708
    I only have 3 system. Working mostly with cubes. I feel like something funky is happening.
     
  4. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,708
    Ok turn out restarting Unity fixed the issues or clear out something. its not fixed as I can feel the speed slowly bleed out each time I itterate. once it get unbearable i just restart again, not a great fix