performance-optimization
Agent skill fromgamedev-skills/awesome-gamedev-agent-skills
Find and fix game performance problems methodically — measure with the engine profiler first, reason about the frame-time budget, locate the CPU-vs-GPU bottleneck, then apply the right fix: object pooling, draw-call batching, fewer allocations/GC spikes, and asset budgets. Engine- neutral method that pairs with each engine's profiler. Use when the user mentions performance, optimize, low/dropping FPS, frame drops, stutter, lag, profiler, frame budget, draw calls, batching, garbage collection/GC spikes, object pooling, or "the game runs slow".
How to install performance-optimization
npx skills add gamedev-skills/awesome-gamedev-agent-skills# or add only this skill to Claude Code: copy the folder
skills/disciplines/performance-optimization/
# into
~/.claude/skills/performance-optimization/ (all projects)
.claude/skills/performance-optimization/ (one project)
1# Performance optimization23Performance work is a measurement discipline, not a bag of tricks. The method is always the4same: **profile → find the one bottleneck → fix that → measure again**. This skill teaches that5loop and the highest-leverage fixes (pooling, batching, allocation control, asset budgets), and6points you at each engine's profiler. It pairs with `physics-tuning` for simulation cost.78## When to use910- Use when the frame rate is low or uneven, the game stutters/hitches, or it must hit a target11 (60 FPS desktop, 30/60 mobile) and currently doesn't.12- Use to decide *what* to optimize: profile, read the frame budget, and identify whether the CPU13 or GPU is the bottleneck before changing any code.14- Use to apply specific fixes: object pooling, draw-call/batch reduction, removing per-frame15 allocations and GC spikes, and setting asset budgets.1617**When *not* to use:** for physics jitter/tunneling/timestep specifically, use `physics-tuning`.18For the engine's concrete profiler UI and rendering settings, use that19engine skill (`godot-export` covers some build settings; engine cores cover the rest). This skill20is the cross-engine method and the shared fixes.2122## The golden rule: measure first, never guess2324Most performance "fixes" applied without profiling target the wrong thing and add complexity for25no gain. **Do not optimize code you have not measured.** Open the profiler, find the single26…
Excerpt shown under the repository's Apache-2.0 license.
