Skip to content

Commit

Permalink
Merge pull request #61482 from Calinou/profiler-increase-frame-histor…
Browse files Browse the repository at this point in the history
…y-3.x
  • Loading branch information
akien-mga authored Jun 3, 2022
2 parents 07b47c9 + c209c6f commit 61ae6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/editor_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void EditorProfiler::add_frame_metric(const Metric &p_metric, bool p_final) {

void EditorProfiler::clear() {
int metric_size = EditorSettings::get_singleton()->get("debugger/profiler_frame_history_size");
metric_size = CLAMP(metric_size, 60, 1024);
metric_size = CLAMP(metric_size, 60, 10000);
frame_metrics.clear();
frame_metrics.resize(metric_size);
last_metric = -1;
Expand Down Expand Up @@ -756,7 +756,7 @@ EditorProfiler::EditorProfiler() {
h_split->add_child(graph);
graph->set_h_size_flags(SIZE_EXPAND_FILL);

int metric_size = CLAMP(int(EDITOR_DEF("debugger/profiler_frame_history_size", 600)), 60, 1024);
int metric_size = CLAMP(int(EDITOR_DEF("debugger/profiler_frame_history_size", 1800)), 60, 10000);
frame_metrics.resize(metric_size);
last_metric = -1;
hover_metric = -1;
Expand Down

0 comments on commit 61ae6b5

Please sign in to comment.