mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Specify ScoreProcessor.Judgements.Capacity in order to avoid List<T> internal auto reallocations
This commit is contained in:
@ -29,11 +29,12 @@ namespace osu.Game.Modes
|
||||
|
||||
public readonly BindableInt HighestCombo = new BindableInt();
|
||||
|
||||
public readonly List<JudgementInfo> Judgements = new List<JudgementInfo>();
|
||||
public readonly List<JudgementInfo> Judgements;
|
||||
|
||||
public ScoreProcessor()
|
||||
public ScoreProcessor(int hitObjectsNumber)
|
||||
{
|
||||
Combo.ValueChanged += delegate { HighestCombo.Value = Math.Max(HighestCombo.Value, Combo.Value); };
|
||||
Judgements = new List<JudgementInfo>(hitObjectsNumber);
|
||||
}
|
||||
|
||||
public void AddJudgement(JudgementInfo judgement)
|
||||
|
Reference in New Issue
Block a user