Fix transforms overhead in TimelineTickDisplay

This commit is contained in:
Andrei Zavatski 2024-03-16 15:05:52 +03:00
parent 96ad0d4b54
commit 981ee54cdc

View File

@ -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;
} }