dev-patterns-object-pooling

Installation
SKILL.md

Object Pooling Pattern

"Pre-allocate, reuse, recycle – eliminate runtime GC pauses."

When to Use This Skill

Use when:

  • Creating/destroying objects every frame (bullets, particles, decals)
  • Targeting 60 FPS with many transient objects
  • Seeing GC pauses in Chrome DevTools Performance tab
  • Objects have identical initialization (can be pre-created)
  • Maximum simultaneous objects is bounded (~500 or less)

Quick Start

// Basic object pool pattern
const POOL_SIZE = 500;
const MAX_ACTIVE = 200;
Installs
1
GitHub Stars
1
First Seen
Mar 24, 2026