mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 13:22:56 +08:00
Remove remaining per-Update transform in OsuLogo to reduce allocations
This commit is contained in:
parent
fb5a54d242
commit
20096f9aea
@ -330,7 +330,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
if (Beatmap.Value.Track.IsRunning)
|
if (Beatmap.Value.Track.IsRunning)
|
||||||
{
|
{
|
||||||
var maxAmplitude = lastBeatIndex >= 0 ? Beatmap.Value.Track.CurrentAmplitudes.Maximum : 0;
|
var maxAmplitude = lastBeatIndex >= 0 ? Beatmap.Value.Track.CurrentAmplitudes.Maximum : 0;
|
||||||
logoAmplitudeContainer.ScaleTo(1 - Math.Max(0, maxAmplitude - scale_adjust_cutoff) * 0.04f, 75, Easing.OutQuint);
|
logoAmplitudeContainer.Scale = new Vector2((float)Interpolation.Damp(logoAmplitudeContainer.Scale.X, 1 - Math.Max(0, maxAmplitude - scale_adjust_cutoff) * 0.04f, 0.5f, Time.Elapsed));
|
||||||
|
|
||||||
if (maxAmplitude > velocity_adjust_cutoff)
|
if (maxAmplitude > velocity_adjust_cutoff)
|
||||||
triangles.Velocity = 1 + Math.Max(0, maxAmplitude - velocity_adjust_cutoff) * 50;
|
triangles.Velocity = 1 + Math.Max(0, maxAmplitude - velocity_adjust_cutoff) * 50;
|
||||||
|
Loading…
Reference in New Issue
Block a user