Fix profiler not updating on realtime
(cherry picked from commit 34045051d2
)
This commit is contained in:
parent
a41f7579c8
commit
fab378abf5
|
@ -68,13 +68,13 @@ void EditorProfiler::add_frame_metric(const Metric &p_metric, bool p_final) {
|
||||||
}
|
}
|
||||||
updating_frame = false;
|
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->set_wait_time(p_final ? 0.1 : 1);
|
||||||
frame_delay->start();
|
frame_delay->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!plot_delay->is_processing()) {
|
if (plot_delay->is_stopped()) {
|
||||||
plot_delay->set_wait_time(0.1);
|
plot_delay->set_wait_time(0.1);
|
||||||
plot_delay->start();
|
plot_delay->start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue