Search Unity

Director Performance

Discussion in 'Scripting' started by Venominus, Feb 10, 2021.

  1. Venominus

    Venominus

    Joined:
    Sep 5, 2015
    Posts:
    25
    Director class takes 20% of CPU. When profiling prelateupdate.directorupdateanimationbegin takes 15% and other director classes 5%. Director.PrepareFrame takes 10% of whole game CPU. Where can I modify director to get better performance?
     
    DungDajHjep likes this.
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,752
    Never heard of Director. Is that part of Playables or something? I haven't seen any updates about that in ages. Maybe start with the playables documentation.
     
  3. Venominus

    Venominus

    Joined:
    Sep 5, 2015
    Posts:
    25
    Native engine system updated by the native player loop. It is about animation.
     
  4. Katerpilet

    Katerpilet

    Joined:
    Aug 2, 2015
    Posts:
    87
    I'm also seeing this but not uniformly across platforms. Some platforms cache this data properly, others seem to be doing significant runtime work
     
  5. DungDajHjep

    DungDajHjep

    Joined:
    Mar 25, 2015
    Posts:
    202
    Set Animator: CullCompletely will reduce half
     
  6. Katerpilet

    Katerpilet

    Joined:
    Aug 2, 2015
    Posts:
    87
    Mine has nothing to do with animators