Set maximum pool size

This commit is contained in:
smoogipoo 2020-11-19 20:40:01 +09:00
parent 70cb197957
commit f013928fa3
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ DrawableHitObject IPooledHitObjectProvider.GetPooledDrawableRepresentation(HitOb
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();
}