mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
perf: Do not draw sectoins that are less than 1px
This commit is contained in:
parent
21073f3601
commit
578d16f2bc
@ -194,7 +194,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
shader = Source.shader;
|
shader = Source.shader;
|
||||||
drawSize = Source.DrawSize;
|
drawSize = Source.DrawSize;
|
||||||
segments.Clear();
|
segments.Clear();
|
||||||
segments.AddRange(Source.segments);
|
segments.AddRange(Source.segments.Where(s => s.Length * drawSize.X > 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Draw(IRenderer renderer)
|
public override void Draw(IRenderer renderer)
|
||||||
|
Loading…
Reference in New Issue
Block a user