mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Fix transforms overhead in TimelineTickDisplay
This commit is contained in:
parent
96ad0d4b54
commit
981ee54cdc
@ -165,7 +165,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
|
||||
// save a few drawables beyond the currently used for edge cases.
|
||||
while (drawableIndex < Math.Min(usedDrawables + 16, Count))
|
||||
Children[drawableIndex++].Hide();
|
||||
Children[drawableIndex++].Alpha = 0;
|
||||
|
||||
// expire any excess
|
||||
while (drawableIndex < Count)
|
||||
@ -182,7 +182,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
point = Children[drawableIndex];
|
||||
|
||||
drawableIndex++;
|
||||
point.Show();
|
||||
point.Alpha = 1;
|
||||
|
||||
return point;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user