Entity Pools
Goomans Projects Goomans Projects Library update 3y ago

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.

favorite3favorites
thumb_up2upvotes
hard_drive 0 MB folder 2 files build Engine v10 history Last update 1189d ago
open_in_new View on sbox.game

About This Package

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.

Media

44
Total Users
77
Total Sessions
1.9 days
Total Playtime
Package ID: gooman.entity_pools
Created: 2023-05-24 20:36 UTC
Updated: 2023-05-24 20:36 UTC
Type: library
Public: Yes
Version: 17720
files: 2
Size: 0.0 MB
Engine Version: 10
Asset Version ID: 17720
Version Created: 2023-05-24 20:36 UTC
Hash: -8256530350866034064
Manifest: Open manifest
Project Template:
Cs Proj Name: entity_pools
Compiler: EntityPools, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, 1, Array, Array
Summary: 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.
Description: ## 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.
Public: true
Replace Tags: library entity optimization pooling
new_releases Latest Update May 24, 2023
Initial upload
19257 Jun 21, 2023
Upload documentation
17720 May 24, 2023
Initial upload