Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

EndFrameParentSystem is very slow compared to everything else

Discussion in 'Entity Component System' started by Bivens32, Mar 16, 2020.

  1. Bivens32

    Bivens32

    Joined:
    Jul 8, 2013
    Posts:
    36
    Does anyone know why this part would be so slow? I'm not changing the parents of anything as far as I'm aware. The only structural changes I have are adding/removing a component fairly regularly and spawning/deleting entities. Those changes are all using EntityCommandBuffers. It seems weird that in the EntityDebugger the EndFrameParentSystem scales very poorly with everything else.
    Profiler.png
     
  2. Curlyone

    Curlyone

    Joined:
    Mar 15, 2018
    Posts:
    41
    This happened to me as well, your EndframeSystem is waiting for a job to finish, if you look at Hierarchy mode you can see what job its waiting for.
     
    Bivens32 likes this.