Property EntityCapacity
EntityCapacity
The capacity of the internal entities array.
Declaration
public readonly int EntityCapacity { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of entities the array can hold before it must be resized. |
Remarks
The entities array automatically resizes itself when the entity count approaches the capacity. You should rarely need to set this value directly.
Important: when you set this value (or when the array automatically resizes), the EntityManager first ensures that all Jobs finish. This can prevent the Job scheduler from utilizing available CPU cores and threads, resulting in a temporary performance drop.