unity-performance

Profile Unity scenes and resolve performance bottlenecks with optimization techniques.

10|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/creator-hian/claude-code-plugins --skill unity-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-performance
Source: https://github.com/creator-hian/claude-code-plugins/tree/main/unity-plugin/skills/unity-performance
Command: npx skills add https://github.com/creator-hian/claude-code-plugins --skill unity-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill focuses on profiling and systematic optimization, including draw calls, batching, LOD, occlusion culling, and memory management.

Core Features & Use Cases

  • Profiling workflows and baseline measurements
  • Draw call reduction and batching strategies
  • LOD and occlusion culling techniques
  • Memory optimization and asset management

Quick Start

Profile a scene, identify bottlenecks, and apply a batching optimization pass.

Frequently Asked Questions about unity-performance

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

FAQPage Schema
How do I identify performance bottlenecks in my Unity game?

Use Unity's Profiler to measure frame time, draw calls, memory usage, and GPU performance. Profile your scene during gameplay to establish a baseline, then identify which subsystem (rendering, physics, scripts, or memory) is causing frame-rate issues. This reveals where optimization efforts should focus first.

What's the best way to reduce draw calls in Unity?

Draw-call reduction combines batching (static and dynamic), GPU instancing, and SRP Batcher. Static batching groups unchanging geometry; dynamic batching combines moving objects with similar materials; GPU instancing renders identical meshes efficiently. Choose the method based on your scene's object count and movement patterns.

When should I use LOD and occlusion culling?

LOD (Level of Detail) reduces mesh complexity for distant objects to save GPU cost. Occlusion culling skips rendering objects hidden behind other geometry, reducing draw calls and fill-rate pressure. Combine both techniques: LOD for distant or peripheral objects, occlusion culling for densely occluded environments like indoor scenes.

Can I optimize memory usage and garbage collection in Unity performance workflows?

Yes. Object pooling reuses instances to prevent allocation spikes and GC pauses. Manage asset memory by unloading unused textures and meshes, using compressed formats, and streaming assets on demand. Profile garbage collection separately to identify allocation hotspots in scripts and reduce frame-time variance.

Does profiling and optimization work the same across mobile, desktop, and VR in Unity?

Core profiling techniques apply universally, but optimization priorities differ by platform. Mobile prioritizes draw calls and memory due to GPU and RAM limits. Desktop allows higher complexity but demands consistent frame rates. VR requires 90+ fps and low latency, making frame-time consistency and GPU-bound optimization critical.

What's the difference between static batching and dynamic batching for draw-call reduction?

Static batching combines fixed geometry once at build time, zero runtime cost but uses more memory. Dynamic batching combines moving objects at runtime, lower memory but higher CPU cost and limited to small meshes. Use static batching for level geometry; dynamic batching for small, frequently moving objects.