mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-21 01:39:32 +00:00
Set capacity for ObjectPool in the constructor
This commit is contained in:
@@ -41,7 +41,9 @@ namespace MonoGame.Extended.Collections
|
||||
|
||||
_instantiationFunction = instantiationFunc;
|
||||
_freeItems = new Deque<T>(capacity);
|
||||
IsFullPolicy = isFullPolicy;
|
||||
IsFullPolicy = isFullPolicy;
|
||||
|
||||
Capacity = capacity;
|
||||
}
|
||||
|
||||
public IEnumerator<T> GetEnumerator()
|
||||
|
||||
Reference in New Issue
Block a user