浏览代码

Merge pull request #19662 from marcelofg55/profiler_update

Fix profiler not updating on realtime
Rémi Verschelde 7 年之前
父节点
当前提交
a9acdd84b7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/editor_profiler.cpp

+ 2 - 2
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();
 	}