mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Improve performance with large numbers of panels visible
This commit is contained in:
@ -483,11 +483,11 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
DrawableCarouselItem item = Items[i];
|
||||
|
||||
if (!item.Item.Visible) continue;
|
||||
|
||||
// Only add if we're not already part of the content.
|
||||
if (!scrollableContent.Contains(item))
|
||||
{
|
||||
if (!item.Item.Visible) continue;
|
||||
|
||||
// Makes sure headers are always _below_ items,
|
||||
// and depth flows downward.
|
||||
item.Depth = i + (item is DrawableCarouselBeatmapSet ? -Items.Count : 0);
|
||||
|
Reference in New Issue
Block a user