Performance snapshot
perf_snapshotCapture quick performance metrics such as FPS, frametimes, Lua memory, and entity counts from the game process across menu, client, and server realms.
Instructions
Quick performance numbers of this game process. Result: {frame: {fps, frametime_avg_ms, frametime_max_ms, samples} over the last 256 frames of the main thread, last_tick_age_s (seconds since the last frame: large = frozen), realms: {menu|client|server: {lua_memory_kb, entity_count, frametime, tick_interval, real_frametime (client)}}} for the realms that exist. Note the frame cap (status fps_max: 20 on a light test client). For per-hook costs use perf_hook_cost.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "perf_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| note | No | ||
| frame | Yes | ||
| realms | Yes | ||
| warning | No | ||
| next_call | No | ||
| answered_by | No | ||
| truncated_note | No | ||
| last_tick_age_s | Yes | ||
| version_warning | No |