Update ObjectPoolService.ObjectPool.cs
This commit is contained in:
parent
e42be670fe
commit
e220cecc9d
@ -7,10 +7,6 @@ namespace AlicizaX.ObjectPool
|
||||
{
|
||||
internal sealed partial class ObjectPoolService
|
||||
{
|
||||
/// <summary>
|
||||
/// Unity main-thread object pool. Array-slot storage + IntOpenHashMap
|
||||
/// + object-based spawn/unspawn + frame-spread release.
|
||||
/// </summary>
|
||||
private sealed class ObjectPool<T> : ObjectPoolBase, IObjectPool<T> where T : ObjectBase
|
||||
{
|
||||
private struct ObjectSlot
|
||||
@ -244,8 +240,6 @@ namespace AlicizaX.ObjectPool
|
||||
|
||||
public override void ReleaseAllUnused()
|
||||
{
|
||||
// Strong clear: release every currently unused releasable object,
|
||||
// ignoring frame budget and capacity target.
|
||||
int released = 0;
|
||||
int current = m_UnusedHead;
|
||||
while (current >= 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user