---
title: "Entity Pools - s&box library"
description: "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."
canonical: "https://sbox.watch/zh-cn/libraries/gooman/entity_pools/"
generated_at: "2026-11-27T13:31:25.180Z"
---

# 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.

- 类型: 库
- 标识符: gooman.entity_pools
- 创作者: Goomans Projects
- 规范地址: https://sbox.watch/zh-cn/libraries/gooman/entity_pools/
- Markdown: https://sbox.watch/zh-cn/libraries/gooman/entity_pools/index.md
- sbox.game: https://sbox.game/gooman/entity_pools/
- 生成时间: 2026-11-27T13:31:25.180Z

## 统计

- 24小时热度: +0
- Terry 评分: 43%
- 收藏: 3
- 好评: 2
- 差评: 0
- 更新时间: 2023年6月21日
- 创建时间: 2023年5月24日
- 大小: 20.1 KB
- 文件: 2
- 标签: library, entity, optimization, pooling

## 描述

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.



## More by Goomans Projects

| Package | 标识符 | 玩家 | 收藏 | 好评 | 评分 | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| Coroutines | gooman.coroutines | 0 | 4 | 5 | 65% | https://sbox.watch/zh-cn/libraries/gooman/coroutines/index.md |
| Performance Tracing | gooman.perf_tracing | 0 | 1 | 0 | -- | https://sbox.watch/zh-cn/libraries/gooman/perf_tracing/index.md |
