1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

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
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: