agentsclimarketplace

Unity perf

Skill bigdra50/unity-cli/skills/unity-perf

CLI tool for controlling Unity Editor via command line - Play Mode, console logs, tests, scenes, GameObjects and more

Install
npx -y skills add bigdra50/unity-cli --skill unity-perf

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

パフォーマンス計測ワークフロー。プロファイリング、GC 分析、最適化提案。 Use for: "パフォーマンス", "プロファイル", "FPS", "GC", "最適化", "ボトルネック"

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.2 KB, as published. Nobody here has run it

unity-perf

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フレーム

分析パターン

ボトルネック確認方法対策
CPUframes の処理時間ホットパスの最適化
GPUframes の描画時間バッチング、LOD
GCframes の GC Allocオブジェクトプール、struct 化
メモリsnapshot のメモリ使用量アセット圧縮、参照整理

最適化チェックリスト

  • Update/LateUpdate 内の毎フレーム Alloc
  • GetComponent の繰り返し呼び出し
  • 文字列結合 (+ 演算子)
  • LINQ in Update
  • 不要な SetActive 切り替え

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.