/godot-dev:godot-profilingfrom godot-dev
Measures Godot game performance: frame timing, physics time, and custom monitors. Compares before/after numbers across multiple headless runs to detect regressions.
Ships in godot-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A change is faster when two runs of the same moment say so, not when a frame counter looks better once. Sample a window of frames with the same clock, several windows per side, and compare against the noise the windows themselves show.
| The situation | Read |
|---|---|
| "Is it faster now?"; a before and after table for a change | the method below, then reference/method.md |
What TIME_PROCESS, TIME_FPS, the object and render monitors mean; why a monitor reads 0 | reference/monitors.md |
| A game number on the monitor list (parcels in play, sentries awake) | reference/monitors.md → "Custom monitors" |
--benchmark-file, --print-fps, --profiling | reference/monitors.md → "Command-line options" |
| Timing one function | reference/method.md → "Time one function" |
| Frame cost at a moment reached by a journey | reference/method.md → "Inside a journey", and godot-play-harness |
| Rendering cost: lights, shadows, materials, draw order | godot-rendering-3d, godot-2d-rendering |
| Is the change correct, not just fast | godot-verify |
resources/perf_sampler.gd to res://perf/perf_sampler.gd.python3 scripts/perf_run.py --project . --scene res://rooftop_route.tscn --out /tmp/perf/before.json --repeat 3
python3 scripts/perf_run.py --project . --scene res://rooftop_route.tscn --out /tmp/perf/after.json --repeat 3
python3 scripts/compare_runs.py --before /tmp/perf/before-1.json /tmp/perf/before-2.json /tmp/perf/before-3.json \
--after /tmp/perf/after-1.json /tmp/perf/after-2.json /tmp/perf/after-3.json --max-regress frame_usec:10
perf_run.py runs godot --headless -l en --path . --fixed-fps 60 --quit-after N -s res://perf/perf_sampler.gd -- --scene=... --warmup=120 --frames=600 --out=... under a wall-clock
timeout. It passes when every run prints PERF_DONE with no marker line and exit 0; it fails on a
marker, PERF_ERROR, or a crash, including a crash after PERF_DONE; no binary, a timeout or no
sentinel is UNVERIFIED (3).
| Number | Means |
|---|---|
frame_usec (the sampler's own) | wall time between process frames; under --fixed-fps the loop is not throttled, so this is the CPU cost of a frame. The number to compare |
| object, node, orphan and resource counts | exact every frame, the same on any machine: the deterministic regression check |
TIME_PROCESS, TIME_PHYSICS_PROCESS, TIME_FPS | refreshed once per wall-clock second; TIME_PROCESS is the slowest frame of that second. A 600-frame fixed-step window lasts well under a second, so they still read 0.0 and 1.0 |
| render monitors | 0: the dummy renderer draws nothing |
custom:<id> | every custom monitor the scene registered |
Headless is CPU only. GPU time, draw calls and video memory need a windowed run on a desktop session, which this skill does not check.
| Rule | Holds when |
|---|---|
--max-regress MON:PCT | after is at most PCT% above before, or above it only within the noise (printed as a NOTE) |
--expect-drop MON:PCT | after is at least PCT% below before and the drop is larger than the noise; needs two or more windows per side |
--budget MON:VALUE | every after window's p95 is at most VALUE |
Each window gives one number per monitor (the median of its frames by default); each side is the
median of its windows; the noise is the larger side's spread. Windows of different scenes, frame
counts, warm-ups, displays or fixed steps are refused, and so is a time_* rule from a window
shorter than 2 s of wall time. Exit 0 every rule held, 2 a rule broke or a named monitor is
missing, 3 a file is unreadable, 1 usage or refused input.
frame_usec under --fixed-fps for CPU work; never a real-time
headless run, where frames wait on the loop and the number measures pacing.--warmup (default 120)
keeps them out of the window.--expect-drop refuses it._exit_tree(). A lambda left registered crashes the engine at quit
after the run has printed its sentinel, sometimes with no marker line; only the exit code shows
it.| Not here | Go to |
|---|---|
| Driving the game into a moment, timelines, invariants | godot-play-harness |
| The verdict on a change, markers, exit codes | godot-verify |
| 3D rendering cost and settings | godot-rendering-3d |
| 2D draw order, lights and shaders | godot-2d-rendering |
| Running Godot from scripts in general | godot-cli |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot, game-performance, benchmarking, profiling, regression-testing
Other plugins' skills for the same job
npx claudepluginhub tipoli5890/game-studio --plugin godot-dev28 skills in this plugin
/godot-2d-controllerMove a 2D character in Godot: CharacterBody2D jump, coyote time, jump buffer, slopes, one-way and moving platforms, top-down movement./godot-2d-renderingGodot 2D look: draw order, z_index and y-sort, CanvasLayer, 2D lights and shadows, canvas shaders, Parallax2D, pixel-perfect scaling./godot-2d-rigA layered 2D character into Godot: rig2d.json to Skeleton2D, Bone2D and weighted Polygon2D parts, cut-out animation, 2D IK./godot-2d-spritesSprite frames into Godot: frames.json to SpriteFrames, AnimatedSprite2D, sheet slicing, pivots, filtering and import for pixel art./godot-3d-controllerMove a 3D character in Godot: CharacterBody3D grounding, slopes and steps, third and first person, lane runner, click-to-move./godot-3d-modelsBring a glTF model into Godot: import settings, post-import script, materials, LODs, collision; audit it against a triangle and texture budget.