unity-performance

Identify Unity performance issues in game code and scenes.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/muddyrain/valley-mas --skill unity-performance-muddyrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-performance
Source: https://github.com/muddyrain/valley-mas/tree/main/.codex/skills/unity-skills/skills/performance
Command: npx skills add https://github.com/muddyrain/valley-mas --skill unity-performance-muddyrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers quickly spot Unity performance red flags that degrade frame rate, rather than chasing micro-optimizations.

Core Features & Use Cases

  • Detect common hot-path culprits and suggest targeted fixes for frame-time issues.
  • Highlight allocations and pooling inefficiencies in Update loops and UI rendering.
  • Use cases include mobile and PC Unity projects aiming to maintain smooth frame rates in complex scenes.

Quick Start

Run a Unity performance review on your project to identify top red flags and recommended fixes.

Frequently Asked Questions about unity-performance

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

FAQPage Schema
How do I identify Unity frame-time issues caused by per-frame allocations?

Identify Unity frame-time issues by checking hot-paths like Update loops for frequent GetComponent calls, LINQ usage, string formatting, closures, and boxing that generate garbage collection overhead and degrade frame rate.

What causes garbage collection spikes in Unity gameplay scripts and UI rendering?

Garbage collection spikes in Unity gameplay scripts and UI rendering are caused by per-frame memory allocations in hot-paths, such as excessive Update loop iterations, LINQ queries, and mis-timed physics or UI updates generating garbage.

How do I optimize Unity Update loops to maintain smooth frame rates in complex scenes?

Optimize Unity Update loops by removing frequent Find and Camera.main lookups, reducing excessive Update and LateUpdate iterations, and applying object pooling inefficiencies fixes to maintain smooth frame rates in complex scenes.

Can I use this to review Unity performance for both mobile and PC projects?

Yes, you can review Unity performance for both mobile and PC projects aiming to maintain smooth frame rates in complex scenes by detecting common hot-path culprits and suggesting targeted fixes.

What is the best way to detect common hot-path culprits degrading Unity frame rate?

The best way to detect common hot-path culprits degrading Unity frame rate is running a performance review that highlights excessive loop iterations, frequent lookups, and pooling inefficiencies in runtime scripts and UI rendering.

Why does my Unity game stutter when should I focus on hot-path optimization instead of micro-optimizations?

Your Unity game stutters due to red flags like excessive Update loops and per-frame allocations; focus on hot-path optimization to resolve frame-time issues directly rather than chasing micro-optimizations.