object-pooling

Community

Reduce garbage and boost Unity performance.

AuthorXeldarAlz
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Instantiating and destroying objects in Unity creates garbage and GC spikes. Object pooling reuses objects to reduce allocations and GC pressure.

Core Features & Use Cases

  • Unity Built-In ObjectPool<T> (2021+) usage pattern with create/get/release hooks
  • Warm-Up: pre-spawn objects during loading to avoid stutters
  • Return-to-Pool Lifecycle: reset state when returned to pool
  • When to Pool: projectile, particle, enemy, and UI element lifecycles
  • Pool Sizing: start sizes, monitor runtime allocations, per-level tuning
  • Generic Pool Manager: manage pools for multiple prefabs
  • Cached WaitForSeconds: reuse WaitForSeconds to avoid allocations

Quick Start

Start by creating a pool for frequently instantiated objects (e.g., bullets) and reuse them to avoid runtime allocations.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: object-pooling
Download link: https://github.com/XeldarAlz/KlondikeSolitaire/archive/main.zip#object-pooling

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.