From unity-cli
Profiles Unity performance: starts/stops profiler, captures snapshots/frames, analyzes CPU/GPU/GC/memory bottlenecks, suggests optimizations for FPS drops and high GC.
npx claudepluginhub bigdra50/unity-cli --plugin unity-cliThis skill uses the workspace's default tool permissions.
> **PREREQUISITE:** `../unity-shared/SKILL.md`(Relay Server 経由で Unity Editor が起動/アクティブであること)
Profiles and optimizes Unity game performance using Profiler, Frame Debugger, Memory Profiler; covers CPU/GPU bottlenecks, GC reduction, object pooling, batching, LOD, occlusion culling, and platform tweaks.
Profiles and optimizes Unity projects using player-build data on target hardware to separate CPU, GPU, GC, loading, and memory issues, prioritizing fixes by impact.
Analyzes Unity scenes for performance bottlenecks in draw calls, batching, textures, GameObjects, lighting, physics. Delivers platform-specific optimization recommendations and workflows.
Share bugs, ideas, or general feedback.
PREREQUISITE:
../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること)skill 経由のコマンドは必ず
-i <instance>を付ける (unity-shared #インスタンス指定)。
1. /unity-verify Quick Verify コンパイルエラーがないことを確認
2. u -i <instance> play Play Mode 開始
3. u -i <instance> profiler start プロファイリング開始
4. 計測 (数秒〜数十秒)
5. u -i <instance> profiler snapshot スナップショット取得
u -i <instance> profiler frames --count 10 フレームデータ取得
6. u -i <instance> profiler stop 停止
7. u -i <instance> stop Play Mode 終了
8. 分析 → 最適化提案
u -i <instance> profiler start # 開始
u -i <instance> profiler stop # 停止
u -i <instance> profiler snapshot # 現在のスナップショット
u -i <instance> profiler frames --count 10 # 直近Nフレーム
| ボトルネック | 確認方法 | 対策 |
|---|---|---|
| CPU | frames の処理時間 | ホットパスの最適化 |
| GPU | frames の描画時間 | バッチング、LOD |
| GC | frames の GC Alloc | オブジェクトプール、struct 化 |
| メモリ | snapshot のメモリ使用量 | アセット圧縮、参照整理 |