mirror of
https://github.com/ppy/osu.git
synced 2025-02-26 18:42:56 +08:00
Unlimit number of samples per pool
This commit is contained in:
parent
0287269b2f
commit
7180bfe4ba
@ -348,7 +348,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
public PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo)
|
public PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo)
|
||||||
{
|
{
|
||||||
if (!samplePools.TryGetValue(sampleInfo, out var existingPool))
|
if (!samplePools.TryGetValue(sampleInfo, out var existingPool))
|
||||||
AddInternal(samplePools[sampleInfo] = existingPool = new DrawableSamplePool(sampleInfo, 1, 30));
|
AddInternal(samplePools[sampleInfo] = existingPool = new DrawableSamplePool(sampleInfo, 1));
|
||||||
|
|
||||||
return existingPool.Get();
|
return existingPool.Get();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user