1
0
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:
tsrk 2023-01-11 11:11:31 +01:00
parent 21073f3601
commit 578d16f2bc
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -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)