unity-performance

Identify Unity performance red flags in gameplay and runtime code.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-performance-rayzerrek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-performance
Source: https://github.com/Rayzerrek/dotfiles/tree/main/.pi/agent/skills/unity-skills/skills/performance
Command: npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-performance-rayzerrek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you spot the most common Unity performance red flags before they turn into frame drops, stutter, or excessive GC pressure.

Core Features & Use Cases

  • Hot Path Review: Checks for too many Update-style loops, repeated lookups, and expensive work happening every frame.
  • Allocation and Pooling Guidance: Flags avoidable Instantiate/Destroy churn, LINQ usage, string formatting, closures, and boxing that can create garbage.
  • Hidden Cost Awareness: Calls out less obvious performance traps like runtime reflection, logging overhead, and costly write-permission paths.
  • Use Case: Use it when a scene feels "too slow," when you are reviewing a codebase for optimization, or when you want to reduce stutter without making premature micro-optimizations.

Quick Start

Ask for a Unity performance review of the attached code or describe the system that feels too slow, and request confirmed red flags, likely red flags, and changes worth doing now.

Frequently Asked Questions about unity-performance

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

FAQPage Schema
How do I find what is causing frame drops and stutter in my Unity game?

To find Unity frame drops and stutter, review runtime code for hot-path allocations, repeated lookups, and excessive Update loops. Identifying these red flags helps isolate what triggers garbage collection pressure and visual slowdowns.

How do I reduce GC pressure from Instantiate and Destroy churn in Unity?

Reduce GC pressure from Instantiate and Destroy churn by implementing object pooling. Reusing instances instead of destroying them eliminates garbage generation, stabilizing the frame rate during runtime gameplay.

What are common hidden Unity performance traps in runtime code?

Common hidden Unity performance traps include runtime reflection overhead, logging costs, and hidden serialization or write-permission paths. Checking for these less obvious issues prevents unexpected frame drops.

Does using LINQ and string formatting in Unity Update loops cause performance issues?

Using LINQ and string formatting in Unity Update loops causes performance issues by generating per-frame allocations. Reviewing hot paths and removing avoidable closures or boxing prevents garbage collection spikes.

How do I review a Unity codebase for optimization without premature micro-optimizations?

Review a Unity codebase for optimization by targeting confirmed red flags, likely red flags, and changes worth doing now. This approach isolates actual frame drops and GC pressure sources without premature micro-optimizations.