Adjust various pooling defaults to better handle more intense beatmaps

This commit is contained in:
Dean Herbert 2022-08-05 18:09:07 +09:00
parent 8ae5429602
commit 9a4d0494de
2 changed files with 5 additions and 5 deletions

View File

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

View File

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