[PERF] CharacterStore: GetComponent<Animator> called every LateUpdate frame #10

Closed
opened 2026-03-12 00:02:46 +00:00 by lavarius · 0 comments
Owner

🟠 High — Performance

File: CharacterStore.cs

GetComponent<Animator>() is called on every Model in the list every LateUpdate frame. This is a heavy operation that scales poorly with model count.

Fix: Cache all Animator references in Awake() or Start() into a List<Animator> and reuse them.

## 🟠 High — Performance **File:** `CharacterStore.cs` `GetComponent<Animator>()` is called on every Model in the list every `LateUpdate` frame. This is a heavy operation that scales poorly with model count. **Fix:** Cache all Animator references in `Awake()` or `Start()` into a `List<Animator>` and reuse them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lavarius/ProjectOverlay#10
No description provided.