Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EngineProfiler
Hereda: RefCounted < Object
Clase base para crear perfiladores personalizados.
Descripción
Esta clase se puede utilizar para implementar perfiladores personalizados que pueden interactuar con el motor y el depurador del editor.
Véase EngineDebugger y EditorDebuggerPlugin para obtener más información.
Métodos
void |
_add_frame(data: Array) virtual |
void |
_tick(frame_time: float, process_time: float, physics_time: float, physics_frame_time: float) virtual |
void |
Descripciones de Métodos
void _add_frame(data: Array) virtual 🔗
Se llama cuando se añaden datos al perfilador usando EngineDebugger.profiler_add_frame_data().
void _tick(frame_time: float, process_time: float, physics_time: float, physics_frame_time: float) virtual 🔗
Se llama una vez por cada iteración del motor cuando el perfilador está activo con información sobre el fotograma actual. Todos los valores de tiempo están en segundos. Los valores más bajos representan tiempos de procesamiento más rápidos y, por lo tanto, se consideran mejores.
void _toggle(enable: bool, options: Array) virtual 🔗
Se llama cuando el perfilador se activa/desactiva, junto con un conjunto de options.