Skip to reading
Debugging and Performance Profiling

Read a slow frame

Edition 0.86.4.5

New 0.86.4.5 field guide. Complements the existing Error Handling & Debugging manual. Benchmark and regression figures are worked examples from the guide, not general performance guarantees. Native GDScript line debugging and engine-level profiling use Godot tools.

Download PDFView illustrations

PERFORMANCE / FRAME INTERVALS

The teal line shows recorded frame intervals. The horizontal budget line depends on the target FPS you select.

1. Select Profile and Start. Reproduce the hitch without pausing at breakpoints. On Performance, choose a 10, 30 or 60 second window and the target you expect to ship. A frame above the budget took longer than the target allows.

Source table from Read a slow frame, page 7
Target30 FPS60 FPS120 FPS
Time per frame33.33 ms16.67 ms8.33 ms

Read n (sample count), P50, P95, P99, max and misses together. At P95, sort the 2 frame times and take the value at rank ceil(0.95 × n). With 100 samples, that is the 95th value. Max is the slowest single sample.

3. Click the spike on the chart. Studio opens Events filtered to its frame. Look for repeated writes, a burst of actions or a measured slice. Use Performance → Clear frame filter before searching for an event outside that frame.

A real example from the supplied capture#

Clockwork Porter recorded 1,048 frame intervals. P95 was 13.155 ms and P99 was 16.553 ms, yet 10 frames exceeded the 16.67 ms budget and the slowest was 59.664 ms. A good P95 alone would miss that hitch.

Page 7 of 13Permalink
Go to page