Game Performance Optimization
/performance-optimization
Fix performance methodically: profile first, set a frame budget, find the CPU or GPU bottleneck, then pool, batch and cut allocations.
- License
- Apache-2.0
- By
- By GameSkill
Part of
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
Tested by GameSkill
22/22 checks passed on Godot 4.7.2 (2026-10-28): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportWhat this skill does
When it triggers
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 …
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit 184b72be0288, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Self-check
- 先用分析器测量,再动手优化 / Measure with the profiler before changing anything
- 在发布版、目标硬件上测,不在编辑器里测 / Profile a release build on target hardware, not the editor
- 先分清是 CPU 还是 GPU 瓶颈 / Find out whether the CPU or the GPU is the bottleneck first
- 子弹、粒子等高频对象用对象池 / Bullets, particles and other hot objects are pooled
- 共享贴图和材质、用 MultiMesh,减少 draw call / Shared textures and materials and MultiMesh keep draw calls down
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/performance-optimization/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/performance-optimization.zip -o /tmp/gameskill-performance-optimization.zip
unzip -oq /tmp/gameskill-performance-optimization.zip -d .claude/skills
rm /tmp/gameskill-performance-optimization.zipWhat you get
- Worked steps: Frame budget math; Measure with the engine profiler; Object pooling; Cut draw calls
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
Good fit
- Requests about performance, optimize, low/dropping FPS, frame drops or stutter
Try this prompt
My game drops to 40 FPS in big fights. Profile it and fix the bottleneck.About this skill
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".
From the performance-optimization SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- The golden rule: measure first, never guess
- Frame budget math (turn "feels slow" into a number)
- Measure with the engine profiler (do this before any fix)
- Object pooling (stop allocating/freeing in hot loops)
- Cut draw calls (the most common GPU-side win)
- Kill per-frame allocations (GC spikes = stutter)
FAQ
Game Polish Workflow
A repeatable workflow for getting an AI agent to actually improve your game: a 10-step polish loop, bilingual prompts, a troubleshooting guide for common AI-made game bugs, and playtest and release checklists.
- 10-step polish loop with done criteria
- 14 prompts in Chinese + 14 in English
Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Game Physics Tuning
Stable, good-feeling physics: fixed timestep with interpolation, mass and drag, CCD against tunneling, jitter fixes and collision layers.
Godot Export
Export Godot 4.7 games for desktop, web and mobile: export presets, headless CLI builds for CI, web COOP/COEP and server builds.
Procedural Generation
Procedural content with seeded RNG: Perlin and Simplex noise terrain, rooms-and-corridors dungeons and weighted loot tables.
Game AI: FSM, Behavior Trees & Pathfinding
NPC and enemy decision-making with state machines, behavior trees, steering and A* pathfinding, paired with your engine's navigation API.
More from Awesome Gamedev Agent Skills
See all 422D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
Similar skills
Playtest Report (Claude Code Game Studios)
Structured playtest report template, or turn existing playtest notes into structured feedback.
Universal Modder
Skills, tools and a fal MCP that let Claude Code mod PC games you own: recon, reverse engineering, generated assets, in-game testing.
earshot: ears for coding agents (judge, find, time-align and make game sound on CPU)
Let an agent hear: rank sound-effect candidates against a description, find the clean trim in a long recording, tell real recordings from code-synthesised sound, check that every hit lands on its picture cut, and render effects from a bank of 252 code-made sounds. Runs locally on CPU with two open audio models (~1.1 GB, downloaded once); no API key needed.
Co-op Anything
Point your coding agent at a single-player game and make it co-op: an MCP server, 13 agent skills and a playbook to research, reverse engineer, build, bot-test and ship co-op mods with Steam relay networking.