mirror of https://github.com/ppy/osu
Adjust various pooling defaults to better handle more intense beatmaps
This commit is contained in:
parent
8ae5429602
commit
9a4d0494de
|
@ -32,7 +32,7 @@ private void load()
|
|||
{
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
connectionPool = new DrawablePool<FollowPointConnection>(1, 200),
|
||||
connectionPool = new DrawablePool<FollowPointConnection>(10, 200),
|
||||
pointPool = new DrawablePool<FollowPoint>(50, 1000)
|
||||
};
|
||||
}
|
||||
|
|
|
@ -118,9 +118,9 @@ private void load(OsuRulesetConfigManager config, IBeatmap beatmap)
|
|||
{
|
||||
config?.BindWith(OsuRulesetSetting.PlayfieldBorderStyle, playfieldBorder.PlayfieldBorderStyle);
|
||||
|
||||
RegisterPool<HitCircle, DrawableHitCircle>(10, 100);
|
||||
var osuBeatmap = (OsuBeatmap)beatmap;
|
||||
|
||||
RegisterPool<HitCircle, DrawableHitCircle>(20, 100);
|
||||
|
||||
var sliders = osuBeatmap.HitObjects.OfType<Slider>();
|
||||
|
||||
|
@ -138,8 +138,8 @@ private void load(OsuRulesetConfigManager config, IBeatmap beatmap)
|
|||
}
|
||||
|
||||
RegisterPool<Spinner, DrawableSpinner>(2, 20);
|
||||
RegisterPool<SpinnerTick, DrawableSpinnerTick>(10, 100);
|
||||
RegisterPool<SpinnerBonusTick, DrawableSpinnerBonusTick>(10, 100);
|
||||
RegisterPool<SpinnerTick, DrawableSpinnerTick>(10, 200);
|
||||
RegisterPool<SpinnerBonusTick, DrawableSpinnerBonusTick>(10, 200);
|
||||
}
|
||||
|
||||
protected override HitObjectLifetimeEntry CreateLifetimeEntry(HitObject hitObject) => new OsuHitObjectLifetimeEntry(hitObject);
|
||||
|
@ -186,7 +186,7 @@ private class DrawableJudgementPool : DrawablePool<DrawableOsuJudgement>
|
|||
private readonly Action<DrawableOsuJudgement> onLoaded;
|
||||
|
||||
public DrawableJudgementPool(HitResult result, Action<DrawableOsuJudgement> onLoaded)
|
||||
: base(10)
|
||||
: base(20)
|
||||
{
|
||||
this.result = result;
|
||||
this.onLoaded = onLoaded;
|
||||
|
|
Loading…
Reference in New Issue