Improve Performance Tricks
Last updated
Last updated
Let's try some tricks to improve performance on when using the Animal Controller and Horse Animset Pro.
Remove or disable states NPCs will not use (Fly, Climb, Fall, Jump, Swim). If they are only going to move around (Keeping Idle and Locomotion will do the trick). This will ignore all the unnecessary Raycasting from automatic States like Fall and Swim (They are constantly checking if the character is grounded or if there's a water source)
Changing Loop Cycle of the States..Some automatic states (Swim, Grab Ledge, Fall) are calculated in every frame you can increase the value to skip some frames.
NPCs should not be using these Unity functions to check if there are any interactions around them. Only the necessary ones should be included. This may drop the performance. This includes things like Zones inside NPCs or the TriggerProxy Component.
AC does not have any optimized code for Audio clips... I just play an audio clip in an audio source. Unless is really necessary to play audio on an NPC, you can disable the sounds too. This includes the FootSteps.