I appreciate your contribution, But it would be good to optimize the plugin =)
The heaviest plugin =)
it is optimized, and there's nothing unusual about that hook time.
CanBeTargeted hook is the issue and has always been. especially since the May forced update. when npcs are near safe zones the NPCAutoTurret's target npcs through walls that it can't possibly kill and spams this hook dozens or even hundreds of times per second.
maybe @Wulf or Mr. Blue (whom I can't tag??) can provide some input or look into a better solution
if you're that worried then just delete this line from the .cs but then you won't have any targeting control.
Subscribe(nameof(CanBeTargeted));