/skills-gamedev:game-performancefrom Game Dev Skills
Optimizes real-time game performance by profiling frame budgets, reducing draw calls, managing GC spikes, and applying LOD/batching strategies. Use when profiling frame times, GPU bottlenecks, or memory.
Ships in Game Dev Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Game performance optimization is not randomly running Unity's profiler the night before release and guessing which scripts to tweak. Real-time rendering is an unyielding mathematical budget. At 60 frames per second, the entire game engine—CPU game logic, AI pathfinding, physics simulation, audio processing, GPU vertex transformation, rasterization, and post-processing—has strictly 16.66 milliseconds to finish. At 120 FPS, that budget shrinks to 8.33 milliseconds. Hitting frame budgets requires identifying bottlenecks, managing garbage collection allocations, and optimizing draw calls.
new inside Update(), FixedUpdate(), or LateUpdate() allocates heap memory, triggering non-deterministic Garbage Collection spikes that cause visible micro-stutters.Awake() or Start() (never call GetComponent() in Update).List<T>, arrays); use list.Clear() instead of new List<T>().PERFORMANCE-BUDGET.md)# Real-Time Game Performance Budget & Profiling Audit: [Scene Name]
*Target Hardware: Steam Deck / Mid-Spec PC (GTX 1660 / Ryzen 5) | Target: 60 FPS (16.6ms)*
## 1. Frame Time Budget Allocation
| Subsystem | Budget (ms) | Actual Measured (ms) | Status | Primary Culprit |
|---|---|---|---|---|
| CPU Game Logic | 4.0ms | 3.2ms | **Pass** | Clean cached lookups |
| CPU Physics | 3.0ms | 4.8ms | **FAIL** | 200 unbatched rigidbodies colliding |
| CPU Render Thread | 3.0ms | 2.4ms | **Pass** | 820 draw calls |
| GPU Base Pass | 6.0ms | 5.1ms | **Pass** | PBR materials |
| GPU Translucency / FX | 3.0ms | 6.4ms | **FAIL** | Particle overdraw on explosions |
| **Total Frame Time** | **16.6ms** | **21.9ms (45 FPS)**| **FAIL** | Physics + Particle Overdraw |
## 2. Identified Performance Bottlenecks & Fixes
1. **Physics Stutter**: 200 physics debris parts were querying continuous mesh colliders.
- *Fix*: Switched debris to simple sphere colliders; set kinematic sleep threshold to 0.2s.
2. **Explosion Overdraw**: Smoke particle system spawned 400 overlapping transparent quads.
- *Fix*: Reduced particle count to 40; used customized cut-out mesh particles to eliminate transparent fill-rate waste.
## 3. Post-Optimization Verification
- **New Total Frame Time**: **13.8ms (72 FPS stable)**. Zero GC allocation in hot loops.
ObjectPool<T> storing 100 reusable bullet impacts.Update(), FixedUpdate()) generate strictly 0 B of GC allocation.GetComponent() in Update(): Calling expensive scene hierarchy searches 60 times per second per entity.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
game-optimization, profiling, draw-calls, garbage-collection, lod
Other plugins' skills for the same job
skills-gamedev@skillary is listed by poorvith-mp/skillary — review the source before installing
npx claudepluginhub poorvith-mp/skillary --plugin skills-gamedev48 skills in this plugin
/anti-cheatEnforce server authority and defend against speed hacks, memory editing, and exploits. For networking setup, see unity-multiplayer. Use when defending games against exploits or hacks./blender-add-on-engineerMoved to modernized catalog in skillary. Removed in v4.1./blender-animationRig, skin and animate characters and props, and export clean animation sets to an engine. Use when rigging skeletons, weight painting, or keyframing animations./blender-modelingModel, retopologise, UV unwrap and bake game-ready assets with correct scale, pivots and polycount. Use when creating 3D hard-surface meshes, low-poly props, or UV layouts./blender-toolingBuild Blender Python add-ons, asset validators, exporters and pipeline automation. Use when writing Python scripts, add-ons, or batch tools for Blender./game-aiDesign NPC behaviour: behaviour trees, state machines, pathfinding, perception and difficulty tuning. Use when designing behavior trees, state machines, or enemy AI.