Investigate and fix performance problems (low FPS, hitches, memory growth, slow loads). Use when the user mentions lag, stutter, frame drops, or high memory. Measures first, fixes the top offender, remeasures.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Perf Pass?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/er2oneousbit-perf-pass)
---
name: perf-pass
description: Investigate and fix performance problems (low FPS, hitches, memory growth, slow loads). Use when the user mentions lag, stutter, frame drops, or high memory. Measures first, fixes the top offender, remeasures.
---
# Performance pass
Follow `docs/sop/SOP-10-performance.md`. Engine profiler instructions are in `docs/ENGINE_FLOW.md`.
1. Confirm the budget in `docs/ARCHITECTURE.md` (target FPS, min spec). Missing? Ask, then record it.
2. Get a **baseline**: which scene or level, build type, hardware, numbers (avg and worst frame time). Ask the user to run the profiler if it needs the editor UI. Tell them exactly which panel and which numbers to capture.
3. Identify the single biggest contributor. Do not guess. If the data is not available, add instrumentation (frame-time log, counters) first.
4. Propose one fix and the expected effect. Make that one change.
5. Remeasure with the same scene and hardware. Record before and after.
6. Repeat until the budget is met. Then stop. No speculative optimization.
7. Add a guard: `python tools/dev.py smoke` prints the run's frame times (mean, p95, p99, worst) on every engine that
measures them; put a number in the `Smoke frame time` row of `docs/ARCHITECTURE.md` (or pass `--frame-budget MS`)
and smoke fails when the p95 goes over it. Read the mode it prints: `logic` (headless, nothing drawn) and `software`
(drawn on the CPU) are not GPU budgets. A stress scene the smoke loads makes the guard bite.
8. Record the result in the `docs/ARCHITECTURE.md` Budgets table ("Measured on" and "Last measured"), in the commit message when a commit is requested, and, if it was a trap, in `docs/TROUBLESHOOTING.md`.
Warn when measurements come from an editor or debug build. Those are not release truth.