Libraries

s&box libraries

Entity Pools

gooman.entity_pools

A pooling mechanism for entities with an API like C# ArrayPool<T>. Useful for situations where you are creating and deleting many entities with a limited lifespan.

About

About Entity Pools

## Features
* Generics support. Any type implementing IEntity (any Entity) and contains a parameterless constructor will suffice.
* Limited capacity pools. This helps you maintain sensible entity counts and prevent excessive creations.
* Overridable entity rent/return logic. Simply add the IPooledEntity interface to your entity.
* Timed asynchronous returning of entities. Useful for fire and forget renting.
* Networkable (All required functionality is implemented but is currently unusable due to S&box issues.)

## License
Distributed under the MIT License. See the license for more information.

libraryentityoptimizationpooling

More by Goomans Projects

01
Coroutines thumbnail
Coroutines gooman.coroutines

No summary provided.

+0 24h
4favorites
5upvotes
57%Wilson score
02
Performance Tracing thumbnail
Performance Tracing gooman.perf_tracing

No summary provided.

performancelibrarytracing
+0 24h
1favorites
0upvotes
--Wilson score