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. Dismiss Notice

stepPhysicsWorld takes more than 3ms with one physics body

Discussion in 'Entity Component System' started by debuggerpls, Mar 13, 2020.

  1. debuggerpls


    Dec 1, 2019
    I am wondering if its normal behaviour, but just by adding a physics body to an entity, i get instantly 8ms of CPU time. In entity debugger it shows that just the stepPhysicsWorld alone takes more than 3ms. And there are irregular spikes (>5ms) too. Is it normal or my settings are wrong? I mean it performs way worse than using MonoBehaviours with Colliders, while there is only 1 entity with a physics body.

    Thanks for your help!