Files
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 line
3.1 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [profile-type] | --fps | --memory | --rendering | --comprehensive\ndescription: Use PROACTIVELY to analyze game performance bottlenecks and generate optimization recommendations across multiple platforms\n---\n\n# Game Performance Analysis & Optimization\n\nAnalyze game performance and generate optimization recommendations: $ARGUMENTS\n\n## Current Performance Context\n\n- Game engine: @package.json or detect Unity/Unreal/Godot project files\n- Platform targets: !`find . -name \"*.pbxproj\" -o -name \"*.gradle\" -o -name \"*.vcxproj\" | head -3`\n- Asset pipeline: !`find . -name \"*.meta\" -o -name \"*.asset\" | wc -l` game assets\n- Build configs: !`grep -r \"BuildTarget\\|Platform\" . 2>/dev/null | wc -l` platform configurations\n- Performance logs: !`find . -name \"*profile*\" -o -name \"*perf*\" | head -5`\n\n## Task\n\nCreate comprehensive performance analysis with automated bottleneck detection, optimization suggestions, and platform-specific recommendations for game development projects.\n\n## Performance Analysis Areas\n\n### 1. Frame Rate & Rendering Performance\n- Analyze draw calls and batching efficiency\n- Identify overdraw and fillrate bottlenecks\n- Review shader complexity and optimization opportunities\n- Evaluate mesh and texture optimization potential\n- Check lighting and shadow rendering performance\n\n### 2. Memory Usage Analysis\n- Memory allocation patterns and potential leaks\n- Texture memory usage and compression opportunities\n- Audio memory optimization suggestions\n- Object pooling and garbage collection analysis\n- Platform-specific memory constraints evaluation\n\n### 3. CPU Performance Profiling\n- Script execution bottlenecks identification\n- Physics simulation optimization opportunities\n- AI and pathfinding performance analysis\n- Animation system efficiency review\n- Threading and parallelization recommendations\n\n### 4. Platform-Specific Optimization\n- Mobile performance considerations (battery, thermal throttling)\n- Console-specific optimization guidelines\n- PC hardware scaling recommendations\n- VR performance requirements and optimizations\n- Web/WebGL specific performance considerations\n\n## Deliverables\n\n1. **Performance Audit Report**\n - Current performance metrics and benchmarks\n - Identified bottlenecks with severity ratings\n - Platform-specific performance analysis\n\n2. **Optimization Recommendations**\n - Prioritized optimization suggestions\n - Implementation difficulty and impact assessment\n - Code and asset optimization guidelines\n\n3. **Monitoring Setup**\n - Performance monitoring implementation\n - Key metrics tracking configuration\n - Automated performance regression detection\n\n4. **Testing Strategy**\n - Performance testing procedures\n - Target device testing recommendations\n - Continuous performance monitoring setup\n\n## Implementation Guidelines\n\nFollow game engine best practices and target platform requirements. Generate actionable recommendations with clear implementation steps and expected performance improvements."}