1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Merge pull request #27958 from EVAST9919/editor-table-simple

Improve `EditorTable` performance
This commit is contained in:
Dan Balasescu 2024-04-22 13:40:28 +09:00 committed by GitHub
commit a91a7b9080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,10 @@ namespace osu.Game.Screens.Edit
protected readonly FillFlowContainer<RowBackground> BackgroundFlow; protected readonly FillFlowContainer<RowBackground> BackgroundFlow;
// We can avoid potentially thousands of objects being added to the input sub-tree since item selection is being handled by the BackgroundFlow
// and no items in the underlying table are clickable.
protected override bool ShouldBeConsideredForInput(Drawable child) => child == BackgroundFlow && base.ShouldBeConsideredForInput(child);
protected EditorTable() protected EditorTable()
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;