Background
Background

Moving Third-Person Animation Updates Off the Game Thread

Animation Blueprint Event Graphs run on the Game Thread. I moved this Third Person example’s velocity, ground speed, movement and falling calculations into thread-safe functions so suitable work could use worker threads. Eligibility does not guarantee worker execution.

Use Property Access for external reads, leaving Call Site on Automatic. It can copy values from Game Thread data at appropriate points. Copying a component reference does not make arbitrary calls through it safe.

Prepare the Animation Blueprint

Start with the Third Person character’s Animation Blueprint and its existing Velocity, GroundSpeed, ShouldMove and IsFalling variables. The screenshots’ engine version was not recorded; menu locations may differ.

Enable Allow Multi Threaded Animation Update under Project Settings → Engine → General Settings → Anim Blueprints, and Use Multi Threaded Animation Update in the Animation Blueprint’s Class Settings.

Create a custom Animation Blueprint function named GetMovementComponent. Its Property Access path is TryGetPawnOwner → GetMovementComponent; the second step calls the Pawn method, not the custom getter.

Cast the result to CharacterMovementComponent. Return that object on success and an empty reference on failure. Mark the function Pure, give it a CharacterMovementComponent object-reference output named exactly ReturnValue, without a space, and compile so it becomes available to bindings.

Custom movement-component getter casting the Pawn’s movement component, with a typed success return and an empty return on cast failure.
The custom getter. Its recorded Property Access binding is labelled Pre-Event Graph.

Move the variable updates

Create three custom functions: UpdateVelocity, UpdateShouldMove and UpdateFalling. Enable Thread Safe in each function’s Details panel. This checkbox cannot make unsafe operations safe; keep external reads in Property Access bindings.

Velocity and ground speed

In UpdateVelocity, bind Property Access to TryGetPawnOwner → GetVelocity and store the result in Velocity. Feed it through Vector Length XY to set GroundSpeed. In the usual Z-up setup, this ignores vertical velocity; horizontal movement during a jump still contributes.

UpdateVelocity storing the Property Access velocity result, then using Vector Length XY to set GroundSpeed.
The velocity snapshot supplies both the vector and its horizontal magnitude.

Movement state

In UpdateShouldMove, read the custom GetMovementComponent → GetCurrentAcceleration path through Property Access. This is the component’s acceleration derived from input, not a measured change in speed.

Assign ShouldMove every update, including false, to the AND of GroundSpeed > 3.0 and acceleration unequal to the zero vector. Use comparison tolerance 0.0. These values preserve this example’s logic.

UpdateShouldMove assigning the AND of GroundSpeed greater than 3.0 and acceleration unequal to zero with tolerance 0.0.
Both conditions feed the assignment on every call.

Falling state

In UpdateFalling, read the custom GetMovementComponent → IsFalling path through Property Access. Assign it directly to the animation variable IsFalling every update. This reports movement state, not Velocity.Z < 0.

UpdateFalling reading GetMovementComponent.IsFalling through Property Access and assigning the resulting boolean.
The movement component’s falling state is copied into the animation variable.

Connect and check the update

Under My Blueprint → Functions → Override, add Blueprint Thread Safe Update Animation. Connect UpdateVelocity → UpdateShouldMove → UpdateFalling in that order. These calls execute in sequence; velocity comes first because UpdateShouldMove needs GroundSpeed.

Remove only the equivalent per-frame Event Graph calculations, retaining unrelated initialization and Game Thread logic. Compile, then compare variable values and animation behaviour during idle, movement, jumping and landing.

Read the profiling result

I recorded five-second traces with 35 stationary mannequins running idle animations and update logic, under a 120 FPS cap. Unreal Insights used an “animation” filter across all threads.

The screenshots show Instance mode: aggregate exclusive durations for each selected interval, with counts of recorded timing events. Exclusive time excludes nested timed work. These are not per-frame, per-call, solely Game Thread or necessarily whole-capture totals.

FinalizeAnimationUpdate: selected-interval totals and a derived average
MetricBeforeAfter
Exclusive total290.3 ms268.9 ms
Recorded occurrences20,10418,612
Total ÷ occurrences≈14.4 µs≈14.4 µs

Dividing the rounded totals by their occurrence counts gives approximately 14.4 µs per occurrence in both captures. I ran this stationary workload only a few times; the lower aggregate does not establish a performance gain.

Unreal Insights before the change, showing 20,104 FinalizeAnimationUpdate timing events and 290.3 milliseconds of aggregate exclusive time.
Before: the recorded animation timers in Instance mode.
Unreal Insights after the change, showing 18,612 FinalizeAnimationUpdate timing events and 268.9 milliseconds of aggregate exclusive time.
After: fewer recorded timer occurrences accompany the lower aggregate total.

A useful next comparison would match workloads, include moving characters, and measure per-frame Game Thread animation time alongside overall frame time.

Other recorded animation timer totals

These are additional profiler labels from the same selections. Values are aggregate exclusive durations across all threads, rather than per-frame costs.

Other timers in the selected intervals, in milliseconds
TimerBeforeAfter
FParallelAnimationCompletionTask4.44.3
USkeletalMeshComponent_CompleteParallelAnimationEvaluation13.313.0
USkeletalMeshComponent_TickAnimation1.51.4
UpdateAnimation1.71.6

Move over the bright dot and follow the line. P pauses. Escape closes the game.

Sigil Trace

Move over the sigil before time runs out.

Score0000
Spells00
Best on this browser0000
I · KINDLE SPELL 01
START

Trace the Sigil with your mouse

Start at the glowing dot and follow the line. No click needed.

or press Enter
Move your mouse onto the bright dot. No click needed.