1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 19:23:11 +08:00

Set maximum pool size

This commit is contained in:
smoogipoo
2020-11-19 20:40:01 +09:00
Unverified
parent 70cb197957
commit f013928fa3
+1 -1
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();
}