Search Unity

High CPU usage with many child objects

Discussion in 'Editor & General Support' started by Tsai_Hao, Sep 3, 2019.

  1. Tsai_Hao

    Tsai_Hao

    Joined:
    Jan 28, 2019
    Posts:
    1
    I am loading many small balls in a cup. However, CPU usage can be very high when number of balls is larger than 100. Ball is with a rigidbody and a sphere collider and is child object of cup. But CPU usage is normal when balls out of cup. Why does it happen?
     
  2. alexeyzakharov

    alexeyzakharov

    Joined:
    Jul 2, 2014
    Posts:
    508
    I think this happens because in the cup there are a lot of contacts and it take some time to run all simulations to resolve all collisions. Perhaps someone in Physics forum can help