Entity Pools

Library

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.

Goomans Projects updated 3y ago 0 MB engine 10
thumb_up 2 open_in_new View on sbox.game
Entity Pools

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.

44
Total Users
77
Total Sessions
1.9 days
Total Playtime
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
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

more_horiz Additional Properties

Project Template:
Compiler: {"RootNamespace":"EntityPools","DefineConstants":"SANDBOX;ADDON;DEBUG","NoWarn":"1701;1702;1591;","Nullables":true,"References":[],"DistinctReferences":[]}
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
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.