Why do offscreen enemies still cost you frames?

They animate even unseen.

Why do offscreen enemies still cost you frames?

The problem

The default culling.

void Awake(){    animator.cullingMode = AnimatorCullingMode.AlwaysAnimate;}

Always Animate updates every bone of every enemy, on screen or not.

The fix

Skip bones nobody sees.

Cull Update Transforms keeps the state machine running but skips writing bones while the renderers are hidden.

hidden→state machine runs+bones skipped

The fix in code

Offscreen gets cheap.

void Awake(){    animator.cullingMode = AnimatorCullingMode.CullUpdateTransforms;}

Timing and parameters stay right, so they look correct the moment they appear.

Watch out

Pick the mode per object.

Each one trades cost for what keeps working.

AlwaysAnimate
player, cutscenes
CullUpdateTransforms
most enemies
CullCompletely
background props

The rule

Hidden things shouldn't pay.

Default
always animates
Crowds
CullUpdateTransforms
Props
CullCompletely