summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-26 20:44:10 +0100
committerGitHub <noreply@github.com>2019-01-26 20:44:10 +0100
commitd9268265dcc19ac7e61629f51783d30750eb80e8 (patch)
treed35cb53045cdc0089b453c4726cdf43788046219
parentd355469c1f2b13c4c8f8672891c5ddd103191af2 (diff)
parentd7c72dc2d129dd0c8b5546fb47b5fc730ed2e500 (diff)
Merge pull request #25354 from Ranoller/patch-5
Profiler list functions from max to less expensive
-rw-r--r--editor/editor_profiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_profiler.cpp b/editor/editor_profiler.cpp
index e0baca9299..dee589ad3f 100644
--- a/editor/editor_profiler.cpp
+++ b/editor/editor_profiler.cpp
@@ -392,7 +392,7 @@ void EditorProfiler::_update_frame() {
category->set_custom_color(0, _get_color_from_signature(m.categories[i].signature));
}
- for (int j = 0; j < m.categories[i].items.size(); j++) {
+ for (int j = m.categories[i].items.size() - 1; j >= 0; j--) {
const Metric::Category::Item &it = m.categories[i].items[j];
TreeItem *item = variables->create_item(category);