mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Set maximum pool size
This commit is contained in:
parent
70cb197957
commit
f013928fa3
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user