Why does the AI stutter when it detects the player?

,

Is this a performance issue or do I need to change how it detects/reacts to players?

I’m new to posting on here so sorry if the format’s off