diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-06-19 21:42:29 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-06-19 21:42:29 -0300 |
commit | 34045051d29a94797415e693204862ddf155f564 (patch) | |
tree | 475965c53aeeaaf4b4141a44dff65dd65e24cff1 | |
parent | fb5fc042302a314b08f548bc95c015b32bc55bf3 (diff) |
Fix profiler not updating on realtime
-rw-r--r-- | editor/editor_profiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_profiler.cpp b/editor/editor_profiler.cpp index 34c9ca6630..fcd3dc2f68 100644 --- a/editor/editor_profiler.cpp +++ b/editor/editor_profiler.cpp @@ -68,13 +68,13 @@ void EditorProfiler::add_frame_metric(const Metric &p_metric, bool p_final) { } updating_frame = false; - if (!frame_delay->is_processing()) { + if (frame_delay->is_stopped()) { frame_delay->set_wait_time(p_final ? 0.1 : 1); frame_delay->start(); } - if (!plot_delay->is_processing()) { + if (plot_delay->is_stopped()) { plot_delay->set_wait_time(0.1); plot_delay->start(); } |