unity-performance

Detect Unity performance red flags in game code for optimization.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-performance-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-performance
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/performance
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-performance-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity projects often face subtle performance issues that reduce frame rates and increase load times. This Skill helps identify high-signal red flags and provides actionable guidance to optimize Update loops, allocations, pooling, and cadence for physics and UI.

Core Features & Use Cases

  • Detect hot paths and excessive Update/LateUpdate/FixedUpdate usage.
  • Flag frequent GetComponent/Find/Camera.main usage in hot paths and per-frame allocations.
  • Recommend effective pooling and object lifecycle strategies.
  • Useful during code audits, performance reviews, and optimization sprints to surface issues quickly.

Quick Start

Run a targeted performance review on your Unity project and report the top five red flags with concrete fixes.

Frequently Asked Questions about unity-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find Unity performance red flags causing frame drops?

Detect Unity performance red flags by reviewing game code for frequent GetComponent, Find, and Camera.main calls in hot paths, then apply the provided optimization guidance to resolve frame drops.

Why does my Unity game experience frame drops in the Update loop?

Frame drops often occur in the Unity Update loop due to per-frame allocations and expensive operations like GetComponent. Identifying these hot paths and implementing object pooling can significantly reduce garbage collection spikes and stabilize performance.

How do I optimize object pooling and lifecycle strategies in Unity?

Optimize object pooling in Unity by detecting allocation hot paths in game code and applying effective pooling and object lifecycle strategies to minimize garbage collection overhead and reduce load times.

Can I use automated checks to fix Unity hot paths in physics and UI updates?

Yes, you can specify checks for Unity hot paths to ensure correct cadence for physics and UI updates, flagging excessive FixedUpdate or LateUpdate usage and providing concrete fixes for optimization sprints.

What's the best way to reduce per-frame allocations in Unity?

The best way to reduce per-frame allocations in Unity is to flag hot paths causing garbage collection spikes, replace frequent Find or GetComponent calls with cached references, and implement object pooling for instantiated objects.

When do I need a Unity performance review for my game code?

You need a Unity performance review when your game code runs slow, experiences frame drops, or requires optimization guidance for Update loops, allocations, pooling, and physics or UI update cadence during optimization sprints.