1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

Set maximum pool size

This commit is contained in:
smoogipoo 2020-11-19 20:40:01 +09:00
parent 70cb197957
commit f013928fa3

View File

@ -348,7 +348,7 @@ namespace osu.Game.Rulesets.UI
public PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo)
{
if (!samplePools.TryGetValue(sampleInfo, out var existingPool))
AddInternal(samplePools[sampleInfo] = existingPool = new DrawableSamplePool(sampleInfo, 5));
AddInternal(samplePools[sampleInfo] = existingPool = new DrawableSamplePool(sampleInfo, 1, 30));
return existingPool.Get();
}