[PERF] LegCorrector: 6 raycasts per frame in LateUpdate #13
Labels
No labels
architecture
bug
duplicate
enhancement
help wanted
invalid
performance
quality
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lavarius/ProjectOverlay#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🟠 High — Performance
File:
LegCorrector.cs6 raycasts per frame (3 per leg × 2 legs) in
LateUpdateadds significant CPU overhead, especially noticeable on lower-end hardware.Fix:
if (Time.frameCount % 3 != 0) return;Vector3[]allocations to avoid per-frame GC pressure