mirror of
https://github.com/ppy/osu
synced 2025-04-11 03:31:46 +00: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.
|
// save a few drawables beyond the currently used for edge cases.
|
||||||
while (drawableIndex < Math.Min(usedDrawables + 16, Count))
|
while (drawableIndex < Math.Min(usedDrawables + 16, Count))
|
||||||
Children[drawableIndex++].Hide();
|
Children[drawableIndex++].Alpha = 0;
|
||||||
|
|
||||||
// expire any excess
|
// expire any excess
|
||||||
while (drawableIndex < Count)
|
while (drawableIndex < Count)
|
||||||
@ -182,7 +182,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
point = Children[drawableIndex];
|
point = Children[drawableIndex];
|
||||||
|
|
||||||
drawableIndex++;
|
drawableIndex++;
|
||||||
point.Show();
|
point.Alpha = 1;
|
||||||
|
|
||||||
return point;
|
return point;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user