Fix (very) long spinners degrading in performance due to high transform count

This commit is contained in:
Dean Herbert 2020-03-22 04:17:04 +09:00
parent febf9adabd
commit 19b6e496ef
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ protected override void Update()
.FadeTo(tracking_alpha, 250, Easing.OutQuint);
}
this.RotateTo(currentRotation / 2, validAndTracking ? 500 : 1500, Easing.OutExpo);
Rotation = (float)Interpolation.Lerp(Rotation, currentRotation / 2, Math.Clamp(Math.Abs(Time.Elapsed) / 40, 0, 1));
}
}
}