Search Unity

CharacterController performance

Discussion in 'iOS and tvOS' started by ratamorph, Mar 9, 2011.

  1. ratamorph

    ratamorph

    Joined:
    Sep 2, 2007
    Posts:
    458
    I've been having some performance issues with my enemies so I started profiling to see what the bottleneck was. My enemies are all set up with CharacterControllers and use UnitySteer to move around.

    As it turns out 15% of the cpu is being used by UnitySteer's AutonomousVehicle FixedUpdate, mostly when it applies the displacement which does a CharacterController.Move

    Should I not be using CharacterController for my enemies?
     
  2. niosop2

    niosop2

    Joined:
    Jul 23, 2009
    Posts:
    1,059
    We ended up going w/ a pure rigidbody approach because CharacterControllers were way too expensive.
     
  3. Arges

    Arges

    Joined:
    Oct 5, 2008
    Posts:
    359
  4. coin-god

    coin-god

    Joined:
    Jan 21, 2010
    Posts:
    325
  5. ratamorph

    ratamorph

    Joined:
    Sep 2, 2007
    Posts:
    458
    You need to import the unitysteer package before importing the examples, otherwise the components will all be missing.