Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.55 KB

File metadata and controls

43 lines (26 loc) · 1.55 KB

Keywords Tab

Reports global keyword budget consumption and per-shader breakdown across all shaders referenced by scanned materials.


Global Keyword Budget

Unity's hard limit is 256 global keywords across all shaders. Exceeding it causes compilation failures.

The budget bar shows current usage. Two threshold markers:

  • 75% — Caution. Monitor before adding more keywords.
  • 90% — Warning. Reduce before the next shader addition.

Status label: Safe / Caution / Warning / Critical.


Duplicate Keywords

Keywords declared with the same name in multiple shaders. Each name counts once toward the global limit, but duplicate declarations represent a consolidation opportunity.

Shown as labeled chips. Conflict resolution and auto-merge — ShaderOS Pro (coming soon).


Per-Shader Breakdown

Column Description
Shader Shader name, truncated to 30 characters
Global Unique global keywords this shader declares (not declared by any other scanned shader)
Local Total local keyword count. Highlighted red if over Unity's 64-keyword per-shader limit
Dups Global keywords shared with at least one other scanned shader. Amber when non-zero
Local budget Bar normalized to the highest local keyword count in the scan — shows relative scale

Bar colors: cyan (low relative use) → amber (high relative use) → red (over the 64-keyword limit).


Scope

Only shaders referenced by scanned materials are included. On a partial scan (free tier limit), the budget report reflects only the analyzed subset.