Token导航 LogoToken导航

Agent Skill · 研究检索

unity-performance(Unity 性能)

unity-performance 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

unity-performance 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 56,419。

总安装 451周安装 19GitHub Stars 33下载 158核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:unity-performance(Unity 性能)
来源仓库:https://github.com/josiahsiegel/claude-plugin-marketplace
仓库路径:skills/unity-performance
安装命令:
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill unity-performance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill unity-performance

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定仓库安装并使用。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

unity-performance 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/unity-performance

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

unity-performance 怎么安装?

在终端执行 npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill unity-per…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

unity-performance 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

unity-performance 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

unity-performance 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

unity-performance 用的人多吗?

公开数据是累计安装 451 次,近一周安装 19 次,下载 158 次,GitHub 33 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

unity-performance 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
unity-performance

Unity 性能 · 本页

45133需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Unity Performance Optimization

Overview

Systematic approach to profiling and optimizing Unity games. Covers profiling tools, CPU/GPU optimization, memory management, rendering optimization, and platform-specific considerations.

Profiling Tools

ToolWhat It ShowsWhen to Use
Unity ProfilerCPU, GPU, memory, audio, physics per frameFirst stop for any perf issue
Frame DebuggerDraw call breakdown, shader/material stateRendering bottlenecks
Memory ProfilerHeap snapshots, texture/mesh memoryMemory leaks, bloat
Profile AnalyzerCompare captures, statistical analysisBefore/after optimization
Physics DebuggerCollider visualization, contact pointsPhysics performance

Profiler Workflow

  1. Build with Development Build + Autoconnect Profiler enabled
  2. Profile on target device (not in Editor -- Editor overhead distorts results)
  3. Identify the bottleneck category: CPU-bound, GPU-bound, or memory pressure
  4. Drill into the specific system causing the issue
  5. Optimize, re-profile, and compare

Reading the Profiler

If frame time > 16.6ms (60 FPS target):
  CPU timeline > GPU timeline -> CPU-bound
  GPU timeline > CPU timeline -> GPU-bound
  GC.Alloc column shows per-frame allocations -> GC pressure

Look for spikes (single bad frames) vs. sustained high times (baseline too heavy).

CPU Optimization

Reduce Per-Frame Allocations (GC)

Anti-PatternFix
string + string in UpdateUse StringBuilder or cache
new List<T>() every frameAllocate once, Clear() and reuse
LINQ in hot pathsReplace with manual loops
GetComponent<T>() per frameCache in Awake/Start
GameObject.Find() per frameCache reference or use events
foreach on non-generic collectionsUse for loop or generic collections
SendMessage() / BroadcastMessage()Use direct calls, events, or interfaces
Boxing value typesUse generic collections, avoid object casts

Object Pooling

public class ObjectPool<T> where T : Component
{
    readonly Queue<T> _pool = new();
    readonly T _prefab;
    readonly Transform _parent;

    public ObjectPool(T prefab, int preWarm, Transform parent = null)
    {
        _prefab = prefab;
        _parent = parent;
        for (int i = 0; i < preWarm; i++)
            _pool.Enqueue(CreateInstance());
    }

    public T Get(Vector3 position, Quaternion rotation)
    {
        var obj = _pool.Count > 0 ? _pool.Dequeue() : CreateInstance();
        obj.transform.SetPositionAndRotation(position, rotation);
        obj.gameObject.SetActive(true);
        return obj;
    }

    public void Return(T obj)
    {
        obj.gameObject.SetActive(false);
        _pool.Enqueue(obj);
    }

    T CreateInstance()
    {
        var obj = Object.Instantiate(_prefab, _parent);
        obj.gameObject.SetActive(false);
        return obj;
    }
}

Pool bullets, particles, enemies, UI elements -- anything instantiated/destroyed frequently. Unity 2021+ also has UnityEngine.Pool.ObjectPool<T> built-in.

Update Optimization

TechniqueDescription
Stagger updatesDon't update all AI every frame; use tick groups
Distance-based LODReduce update frequency for distant objects
Event-drivenReplace polling with events where possible
Disable unused scriptsenabled = false on off-screen components
Use InvokeRepeatingFor periodic checks (cheaper than coroutine yielding)

GPU / Rendering Optimization

Draw Call Reduction

TechniqueHowSavings
Static BatchingMark non-moving objects as StaticCombines meshes at build time
Dynamic BatchingAutomatic for small meshes (<300 verts)URP/Built-in only
GPU InstancingEnable on materials for repeated objectsTrees, grass, rocks
SRP BatcherEnabled by default in URP/HDRPReduces SetPass calls
Texture AtlasingCombine textures into atlasFewer material switches
Mesh CombiningCombineMeshes() at runtimeCustom batching

LOD (Level of Detail)

LOD Group Setup:
  LOD 0 (0-30%):  Full-detail mesh (5000 tris)
  LOD 1 (30-60%): Medium mesh (2000 tris)
  LOD 2 (60-90%): Low mesh (500 tris)
  Culled (90%+):  Not rendered

Use LOD for meshes, but also reduce script complexity, particle counts, and physics at distance.

Occlusion Culling

Bake occlusion data for indoor/complex scenes. Mark large static occluders (walls, floors). Configure cell size based on scene scale. Use the Occlusion Culling window to visualize and test.

Shader Optimization

IssueSolution
Complex fragment shadersReduce texture samples, simplify math
OverdrawMinimize transparent objects, use opaque when possible
Too many variantsStrip unused shader variants in build settings
Expensive post-processingDisable effects on mobile, use cheaper alternatives

Memory Management

Common Memory Issues

IssueSymptomFix
Texture bloatHigh memory, long loadsCompress textures, reduce max size per platform
Unloaded scenes holding refsMemory climbs over timeUse Resources.UnloadUnusedAssets() after scene transitions
Addressables not releasedBundles stay in memoryCall Addressables.Release(handle)
Audio clips uncompressedHuge memory footprintUse compressed in memory for music, decompress on load for SFX
Mesh read/write enabledDouble memory per meshDisable Read/Write if not needed at runtime

Texture Compression Per Platform

PlatformFormatNotes
PC/ConsoleBC7 (DXT)Best quality/size ratio
AndroidASTC 6x6Universal, scalable quality
iOSASTC 6x6Same as Android
WebGLETC2 / DXTDepends on target GPU

Use "Override for [Platform]" in texture import settings. Set max texture size to the minimum needed (512 for UI icons, 1024 for props, 2048 for hero assets).

Platform-Specific Considerations

PlatformKey Constraints
MobileThermal throttling, limited memory, battery drain, fill-rate limited
WebGLNo threads (pre-Unity 6), large download size, no compute shaders
ConsoleCertification requirements, fixed hardware, memory budgets
VR/XR72-90 FPS minimum, stereo rendering cost, motion sickness from drops

Addressables and Asset Loading

Use Addressables for async asset loading to avoid load-time hitches:

// Preload during loading screen
var handle = Addressables.LoadAssetAsync<GameObject>("enemy_boss");
await handle;

// Release when done
Addressables.Release(handle);

Use Addressable groups to control bundle granularity. Mark infrequently used assets as remote/on-demand. Profile bundle memory with the Addressables Event Viewer.

Quick Optimization Checklist

  • Profile on target device, not in Editor
  • Zero per-frame GC allocations in gameplay code
  • Object pooling for all frequently spawned objects
  • Static batching enabled for non-moving objects
  • LOD groups on all 3D models visible at varying distances
  • Textures compressed per platform with appropriate max sizes
  • Disable Read/Write on meshes and textures not modified at runtime
  • Audio clips use appropriate compression settings
  • Occlusion culling baked for indoor/complex scenes
  • Shader variants stripped in build settings

Additional Resources

Reference Files

  • references/profiling-deep-dive.md -- Advanced Profiler usage, memory profiler snapshots, frame-by-frame analysis, custom profiler markers, automated performance testing, build size analysis, ECS/DOTS performance patterns

平台分布

Codex

32.76%
按下载量换算52

Claude

31.15%
按下载量换算49

Cursor

19.3%
按下载量换算30

Gemini CLI

10.26%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills