Merge pull request #93602 from aaronp64/inspector_latency

Improve Editor Inspector/Theme item lookup performance
This commit is contained in:
Rémi Verschelde 2024-08-22 00:10:26 +02:00
commit 091212b4f1
No known key found for this signature in database
GPG key ID: C3336907360768E1
16 changed files with 140 additions and 115 deletions

View file

@ -511,7 +511,7 @@ void EditorNode::_update_theme(bool p_skip_creation) {
DisplayServer::set_early_window_clear_color_override(true, theme->get_color(SNAME("background"), EditorStringName(Editor)));
}
List<Ref<Theme>> editor_themes;
Vector<Ref<Theme>> editor_themes;
editor_themes.push_back(theme);
editor_themes.push_back(ThemeDB::get_singleton()->get_default_theme());
@ -580,7 +580,7 @@ void EditorNode::update_preview_themes(int p_mode) {
return; // Too early.
}
List<Ref<Theme>> preview_themes;
Vector<Ref<Theme>> preview_themes;
switch (p_mode) {
case CanvasItemEditor::THEME_PREVIEW_PROJECT: