From a35e0e777ff4e7bd58673fed9c6b47a23c640355 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Sun, 16 Apr 2023 17:32:18 -0500 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 4d720b0..7e3d7d9 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,27 @@ The avatar will stay in the default animator state until AAS data is received th You will no longer sync garbage AAS while switching avatar. +--- +# BadAnimatorFix + A bad fix for a niche issue. Is it really even a fix? + +This mod occasionally rewinds animation states that have loop enabled. + +Unity seems to have a weird quirk where animations with loop cause performance issues after running for a long long time. +You'll only start to notice this after a few hours to a few days of idling. + +Disable loop on your 2-frame toggle clips! They cycle insanely fast and heavily contribute to this issue. + +This mod also indirectly fixes your locomotion animations or other animations locking up after being AFK/Idle for days at a time. + +## Note + +I haven't figured out exactly what's causing the performance drops over time, but I think it might be due to animation clips that have loop enabled for no reason. Unity's loop setting for animation clips is inconsistent, so clips created from the Project tab don't have loop, while those created from the Animation tab do. Depending on how creators make these clips for their avatars, they might unintentionally be more prone to this issue. + +Poking around existing communities and searching around, this issue or a similar one has been noted before, with the cause being short animations with loop enabled. + +Unity is weird. It is hard to debug this issue as it is avatar dependent and sometimes just does not occur without actually idling for hours to days. I can speed up the game or use EvaluateController() to attempt to force the issue sooner, but even so, it sometimes just does not occur. + --- # Blackout