How to interpret profiler data?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Diet Estus

I am starting to profile my game in order to prevent periodic frame drops, but I need help interpretting the data.

I notice that sometimes my player’s _physics_process() method, and some of the other methods which this method calls, are called twice per frame, causing spikes in the profile.

Why might that be? Is this unusual?

When looking at the FPS monitor graph, I’m also noticing very volatile FPS. Could this be the cause?

:bust_in_silhouette: Reply From: ProggerParrot

I know the answer come a little late. But the profiler in Godot is quite powerful, and this video will definitely helps you.