game-perf

Installation
SKILL.md

Game Performance Optimization

Sources: These are standard JavaScript engine behaviours (generational GC, hidden-class stability) rather than game-specific findings — see V8's public documentation on allocation and garbage collection. Spatial hashing is textbook broad-phase collision detection. No figures here are benchmarks; measure your own hot path with a profiler before optimising it, per the Numbers Policy in game-design.

This skill provides patterns for writing allocation-free, GC-friendly code in game loops and hot paths. Apply these patterns proactively when working on any code that executes per-frame.

Anti-Patterns and Fixes

1. Spread Operator Copies

Installs
3
GitHub Stars
2
First Seen
Apr 7, 2026