Hi guys, Ive been using the profiler all day reducing bottlenecks and now my largest one is NPC.FixedUpdate(), from AC. I have lots of people walking around and I see some relatively complex maths in the methods that it relies on, but should this really need 60% of the cpu? Or is something going weird, seems like its a bit overkill.
The code seems fairly optimised really, so I am just wondering if there is a way I can reduce this significantly without affecting gameplay too much. Or maybe Ive done something wrong that causes this to happen.. Maybe if you guys check your profiler you will see this too..
Comments
The NPC script likely isn't the cause of it - but instead the _FixedUpdate function of it's base Char script that it calls within it.
Try commenting out each of the functions that Char.cs' _FixedUpdate function calls, and see which one (assuming it's due to only one) is causing the slowdown.