mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Merge pull request #27958 from EVAST9919/editor-table-simple
Improve `EditorTable` performance
This commit is contained in:
commit
a91a7b9080
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user