> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksobjectpool.md).

# Class ksObjectPool

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Static class for configuring object pools.

```csharp
public static class ksObjectPool
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) â† [ksObjectPool](/reactor/api-reference/ks.reactor/ks.reactor.ksobjectpool.md)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Fields

### DefaultLimit <a href="#ks_reactor_ksobjectpool_defaultlimit" id="ks_reactor_ksobjectpool_defaultlimit"></a>

The default maximum number of objects to allow in objects pools. Object pools that have a negative [OverrideLimit](/reactor/api-reference/ks.reactor.md#KS_Reactor_ksObjectPool_601_OverrideLimit) will use this value. By default this is zero which disables object pooling. If you enable object pooling, be aware that entities and linear predictors will be pooled, so references to destroyed entities can become references to new entities, and linear predictors cannot be reassigned once they are unassigned and returned to the pool.

```csharp
public static int DefaultLimit
```

#### Field Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)
