Search Unity

Performance of many animated characters on mobile

Discussion in 'Editor & General Support' started by Athomield3D, Jun 24, 2020.

  1. Athomield3D

    Athomield3D

    Joined:
    Aug 29, 2012
    Posts:
    193
    Hello I'm working on a mobile game with a number of animated characters on screen at a peak could reach 60+ at a time.
    Are there any good ways/tips to mitigate the consequent performance issues ? All feedback is appreciated
     
    trombonaut likes this.
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    The first step is to test your game on the weakest target device and measure the performance. If it's acceptable you're finished.

    If not, the next step is to attach the Unity profiler and run the game again on that target device. The profiler will help you identify performance hotspots. You just go and tackle those one by one until the performance is acceptable.

    There's no one size fits all answer other than this because every game is different.
     
    MartinTilo likes this.
  3. Athomield3D

    Athomield3D

    Joined:
    Aug 29, 2012
    Posts:
    193
    One first step is to keep the bones in rig number low but also will not attach the head directly to the rig ( with wieghts ) but will do it in the editor since it will not bend or deform (characters got no necks lol).
     
  4. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    See that's the kind of thing that can't be given as general advice because not every game even uses rigged meshes and animations.