Use when a Godot game stutters, hitches, loads slowly, has low or uneven fps, uses too much memory or video memory, or when asked to optimise a Godot project. Measures first, finds the cause with Godotwright's performance review and lessons from real projects, fixes one thing at a time and measures again. Also in Dutch: 'het hapert', 'haperingen', 'laadtijd te lang', 'lage fps', 'sneller maken', 'te veel videogeheugen', 'optimaliseren'.
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?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/laaielichter-perf)
---
name: perf
description: "Use when a Godot game stutters, hitches, loads slowly, has low or uneven fps, uses too much memory or video memory, or when asked to optimise a Godot project. Measures first, finds the cause with Godotwright's performance review and lessons from real projects, fixes one thing at a time and measures again. Also in Dutch: 'het hapert', 'haperingen', 'laadtijd te lang', 'lage fps', 'sneller maken', 'te veel videogeheugen', 'optimaliseren'."
argument-hint: "[what is slow, optional]"
---
# Make a Godot game faster, measured
Work on $ARGUMENTS (or what the user named). Never optimise without a number before and after.
1. **Measure first, the right way.** `godot_perf` on the scene (with `input` for what happens in it) gives frame-time
percentiles against a budget, the slowest frames and what changed on them, and keeps a baseline. Agree on one
repeatable case (a scene, a start position, a camera path, a time).
Read frame time, not fps: the worst frames (99th percentile, the longest frame) show a stutter that an average
hides. Measure an exported build or the export template when you can; editor and debug builds are slower in other
places. Alternate A and B runs in blocks, so warm caches and heat do not decide the result.
2. **Ask what real projects learned.** `godot_lessons` with topic `performance` and the symptom ("stutter when a model
loads", "hitch on first explosion", "slow start"). Typical causes: a glTF parsed on the main thread, shaders
compiled on first use, many nodes made in one frame, textures read back from the GPU, physics ticks catching up,
heavy `_process` work on things far away.
3. **Let the review point.** `godot_review` and read the `performance` category: per-frame allocations, node lookups
in `_process`, `get_image()` in loops, runtime glTF without mipmaps, small lights with cube shadows.
4. **One change at a time,** each behind a switch you can turn off, so a change that does not help can be proven
useless and removed. Spread work over frames instead of doing it in one; pool what is made and freed often; load
in the background with `ResourceLoader.load_threaded_request()`; warm shaders with the same settings as the real view.
5. **Measure again** with `godot_perf`, the same case and the same method: it shows the change since the last run. Keep the change only when the numbers say so; say how
much it helped (worst frame, average, load time, memory).
6. **Memory that grows** over a long session (or orphan nodes growing in `godot_perf`): run `godot_leaks` on the scene
that streams or reloads. It names the class, script and line of what is left behind per cycle; after the fix it
must show 0 per cycle.
7. Keep lessons with `godot_lesson_add` when a cause was hard to find.
8. **Rendering cost and big worlds: hand over to the Game Optimizer.** When the cause is what the GPU draws rather than
what a script does (draw calls, lights and shadows, levels of detail and visibility ranges, video memory and
textures, streaming an open world), the optional companion server, the Godotwright Game Optimizer, takes that part:
`optimizer_audit` ranks what holds the frame rate back across the whole world and plans the fixes (no Godot
needed), `optimizer_bench` measures with the renderer (frame-time percentiles, draw calls, video memory, a screenshot
per station on a fixed camera route), and `optimizer_compare` says whether the last fix helped and whether the
picture changed. Use it when its tools are there. When they are not, tell the user it would help and give its install
line instead of installing it yourself:
`claude mcp add gameoptimizer -- npx -y github:laaielichter/godotwright-gameoptimizer mcp`.
Scripts stay with Godotwright: `godot_review` and `godot_perf` remain the check for code.
End with a table: change, before, after, kept or dropped.