Specify ScoreProcessor.Judgements.Capacity in order to avoid List<T> internal auto reallocations

This commit is contained in:
TocoToucan
2017-01-16 23:14:35 +03:00
parent b493f359b9
commit 259c0964fd
8 changed files with 14 additions and 13 deletions

View File

@ -1,11 +1,6 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Osu.Objects.Drawables;
@ -13,6 +8,11 @@ namespace osu.Game.Modes.Osu
{
class OsuScoreProcessor : ScoreProcessor
{
public OsuScoreProcessor(int hitObjectsNumber)
: base(hitObjectsNumber)
{
}
protected override void UpdateCalculations(JudgementInfo judgement)
{
if (judgement != null)