game-performance-profiler — Claude Code command for game performance
Audits a game project for frame rate, memory and rendering bottlenecks, then hands back a prioritized optimization list.
npx claude-code-templates@latest --command game-development/game-performance-profilerWhat game-performance-profiler does
The command runs a performance audit and writes up what it finds: where frame rate drops, how memory is spent, what the shaders and shadows cost. It starts by scanning the project for engine files, build configs, assets and profiling logs, then sorts the findings by severity and proposes fixes.
An argument picks the focus: --fps, --memory, --rendering or --comprehensive. Platform guidance is part of the output too — mobile battery and thermal limits, console notes, PC hardware scaling, VR requirements, WebGL specifics. The command works with Read, Write, Edit and Bash.
You get four deliverables: an audit report with metrics and severity ratings, prioritized recommendations with difficulty and impact, a monitoring setup, and a testing strategy for target devices. Project detection leans on files like *.pbxproj, *.gradle and *.vcxproj, so if those are missing you describe the context yourself.
What it helps with
- spot frame rate and batching bottlenecks
- estimate texture and audio memory usage
- review shader complexity and overdraw
- collect platform-specific optimization advice
- set up regression tracking for performance
Example prompts for the agent
- /game-performance-profiler --fps
- /game-performance-profiler --memory
- /game-performance-profiler --comprehensive
How to install game-performance-profiler
1claude-code-templates
npx claude-code-templates@latest --command game-development/game-performance-profiler2Manually: put the files in place
.claude/commands/game-performance-profiler.mdCall it with /game-performance-profiler. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/game-performance-profiler.mdCall it with /prompts:game-performance-profiler. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/game-performance-profiler.prompt.mdManually: put the files in place
.gemini/commands/game-performance-profiler.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about game-performance-profiler
How do I install game-performance-profiler in Claude?
Install it through the templates CLI: npx claude-code-templates@latest --command game-development/game-performance-profiler. The file lands at .claude/commands/game-performance-profiler.md.
What does game-performance-profiler do?
It analyzes game performance and produces a report with bottlenecks, optimization recommendations, a monitoring setup and a testing plan.
What arguments does the command take?
--fps, --memory, --rendering or --comprehensive, each setting the scope of the analysis.
Source text
game-performance-profiler.md · MIT
--- allowed-tools: Read, Write, Edit, Bash argument-hint: "[profile-type] | --fps | --memory | --rendering | --comprehensive" description: Use PROACTIVELY to analyze game performance bottlenecks and generate optimization recommendations across multiple platforms --- # Game Performance Analysis & Optimization Analyze game performance and generate optimization recommendations: $ARGUMENTS ## Current Performance Context - Game engine: @package.json or detect Unity/Unreal/Godot project files - Platform targets: !`find . -name "*.pbxproj" -o -name "*.gradle" -o -name "*.vcxproj" | head -3` - Asset pipeline: !`find . -name "*.meta" -o -name "*.asset" | wc -l` game assets - Build configs: !`grep -r "BuildTarget\|Platform" . 2>/dev/null | wc -l` platform configurations - Performance logs: !`find . -name "*profile*" -o -name "*perf*" | head -5` ## Task Create comprehensive performance analysis with automated bottleneck detection, optimization suggestions, and platform-specific recommendations for game development projects. ## Performance Analysis Areas ### 1. Frame Rate & Rendering Performance - Analyze draw calls and batching efficiency - Identify overdraw and fillrate bottlenecks - Review shader complexity and optimization opportunities - Evaluate mesh and texture optimization potential - Check lighting and shadow rendering performance ### 2. Memory Usage Analysis - Memory allocation patterns and potential leaks - Texture memory usage and compression opportunities - Audio memory optimization suggestions - Object pooling and garbage collection analysis - Platform-specific memory constraints evaluation ### 3. CPU Performance Profiling - Script execution bottlenecks identification - Physics simulation optimization opportunities - AI and pathfinding performance analysis - Animation system efficiency review - Threading and parallelization recommendations ### 4. Platform-Specific Optimization - Mobile performance considerations (battery, thermal throttling) - Console-specific optimization guidelines - PC hardware scaling recommendations - VR performance requirements and optimizations - Web/WebGL specific performance considerations ## Deliverables 1. **Performance Audit Report** - Current performance metrics and benchmarks - Identified bottlenecks with severity ratings - Platform-specific performance analysis 2. **Optimization Recommendations** - Prioritized optimization suggestions - Implementation difficulty and impact assessment - Code and asset optimization guidelines 3. **Monitoring Setup** - Performance monitoring implementation - Key metrics tracking configuration - Automated performance regression detection 4. **Testing Strategy** - Performance testing procedures - Target device testing recommendations - Continuous performance monitoring setup ## Implementation Guidelines Follow game engine best practices and target platform requirements. Generate actionable recommendations with clear implementation steps and expected performance improvements.
© davila7 · MIT · davila7/claude-code-templates