Profiler and verification runs
Feather 2 collects runtime statistics in the editor, in Play and in the standalone player. The same
figures are shown in the Profiler panel, returned by the runtime.stats command and written to
--verify-run reports, so a person and an agent measure a change the same way.
Open the profiler
Section titled “Open the profiler”- Choose Window → Profiler, or Profiler… from the viewport’s menu button.
- Press Play to measure the game rather than the editor. The panel keeps updating during Play.
The panel shows average FPS, frame-time percentiles, the worst frame, hitches and peak memory, a
graph of recent frame times with guide lines at 16.7 ms (60 FPS) and 33.3 ms (30 FPS), and a table
of scene counts. It also states whether the build is debug or release.

Statistics
Section titled “Statistics”| Statistic | Description |
|---|---|
frames_sampled |
Frames in the rolling window, up to 600 (about ten seconds at 60 FPS) |
average_fps |
Average frame rate over the window |
p50_frame_ms, p95_frame_ms, p99_frame_ms |
Frame-time percentiles in milliseconds |
worst_frame_ms |
The slowest frame in the window |
hitches |
Frames slower than three times the median |
peak_memory_mb |
Peak resident memory of the process, in MiB |
build |
debug or release |
quality |
The player’s graphics quality while sampling (Low, Medium or High); empty in the editor |
Frames behind a built game’s loading screen are not recorded, so shader compilation and streaming at startup do not count as gameplay.
Counts
Section titled “Counts”| Count | What it counts |
|---|---|
entities, meshes, lights |
Engine entities, rendered meshes and lights |
vfx_particles, vfx_effects, combat_particles, decals |
Particle and decal load |
enemies, agents |
Combat enemies and navigation agents |
sounds_playing |
Active sounds |
rigid_bodies |
Physics bodies |
nav_grid_cells |
Cells in the navigation grid |
Verification runs
Section titled “Verification runs”--verify-run launches the game in a real window, waits for it to load, measures, writes a JSON
report and exits. Both the player and the editor accept it.
feather-player my-game/project.feather.json --verify-run report.json --screenshot report.png- The run waits for the loading screen to finish, then at least 180 frames and four more seconds, until terrain and models have finished loading.
- It samples 120 frame times, then captures the screenshot if you asked for one.
- It writes the report and exits. A run that takes more than 30 seconds beyond its wait is reported as a failure.
Set FEATHER_VERIFY_SECONDS=N to wait N seconds (up to 600) after loading before measuring, for
example to check a later game state.
Report
Section titled “Report”| Field | Description |
|---|---|
success, errors |
Whether the run passed, and model, script and runtime errors |
performance |
Percentiles from the 120 sampled frames, entity count and build type |
runtime_stats |
The full statistics block described above |
loading |
The loading screen: seconds spent, shader pipelines compiled behind it and timed_out if it gave up waiting |
models_loaded, render_meshes, score |
Load and gameplay state |
objects |
Each object’s world position, rotation, body, velocity and visibility |
logs, error_count |
Runtime messages |
game_state, story |
World-script state and quest progress |
save_sections |
Systems that keep state in saves |
Systems add their own sections when the project uses them, for example animation, weather,
trees, fire, elements, fluids, inventory, lighting, horizon, climate, wind,
streaming, audio and platformer.
Compare graphics quality levels
Section titled “Compare graphics quality levels”The figures depend on the player’s graphics quality (see
Saves and settings). Set FEATHER_QUALITY to
low, medium or high to measure one level for a single run; it is never saved, and the report’s
runtime_stats.quality confirms the level used. Set FEATHER_NO_VSYNC=1 so vertical sync does not
round frame times to the display’s refresh rate.
for q in low medium high; do FEATHER_QUALITY=$q FEATHER_NO_VSYNC=1 FEATHER_VERIFY_SECONDS=15 \ feather-player my-game/project.feather.json --verify-run bench-$q.jsondoneSingle runs on a laptop can vary noticeably, so compare the median of several runs per level, and
keep random weather out of the comparison. In a source checkout, after
cargo build --bin feather-player, python3 scripts/quality_bench.py <game folder> does this: it
copies the game, sets a .feather project’s weather to clear (--keep-weather leaves it), compiles
the shaders with one warm-up run, then runs the levels in turn and prints the median of three runs
per level. --runs, --levels and --seconds change the defaults, and
--set file.json:key.path=value patches the copy to compare one setting.
Per-system profiling
Section titled “Per-system profiling”For a frame broken down by engine system, build the player with the profile feature in its own
target folder. It writes a Chrome trace (trace-*.json) to the working folder, which you can open in
any viewer for Chrome traces or summarise with scripts/profile_trace.py:
CARGO_TARGET_DIR=target/profile cargo build --bin feather-player --features profileFEATHER_NO_VSYNC=1 FEATHER_VERIFY_SECONDS=12 target/profile/debug/feather-player \ my-game/project.feather.json --verify-run report.jsonpython3 scripts/profile_trace.py trace-*.jsonprofile_trace.py lists the time each system spends per thread, then the slowest frames and what
dominated each.
Limits
Section titled “Limits”- Statistics cover the last 600 frames only.
- Peak memory is read from the operating system once per second.
- Verification runs need a desktop session with a real window. For renderer-free checks, use
game.simulate.
Automate it
Section titled “Automate it”In a live editor, start Play, let it run, then read the statistics:
feather-cli command runtime.play --json '{"playing":true}'feather-cli command runtime.statsfeather-cli command runtime.play --json '{"playing":false}'