From 0876a16bdebfa3bf96dc318168e636f15ccd3e45 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Thu, 9 Feb 2023 10:28:22 +0000 Subject: [PATCH] Default update_vital_only to true for Android and Web editor Android devices will typically be powered from battery. This PR defaults the editor on Android to use `update_vital_only` mode, using as little power as possible, in order to conserve battery. Also shows the update spinner by default, to emphasize that vital updates only is occurring, and allow easy switching out of the mode. --- editor/editor_node.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 0ff80174df3..0f4f8cc890e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6044,9 +6044,14 @@ EditorNode::EditorNode() { EDITOR_DEF("interface/editor/save_on_focus_loss", false); EDITOR_DEF_RST("interface/editor/save_each_scene_on_quit", true); EDITOR_DEF("interface/editor/quit_confirmation", true); - EDITOR_DEF("interface/editor/show_update_spinner", false); EDITOR_DEF("interface/editor/update_continuously", false); +#if defined(ANDROID_ENABLED) || defined(JAVASCRIPT_ENABLED) + EDITOR_DEF("interface/editor/show_update_spinner", true); + EDITOR_DEF("interface/editor/update_vital_only", true); +#else + EDITOR_DEF("interface/editor/show_update_spinner", false); EDITOR_DEF("interface/editor/update_vital_only", false); +#endif EDITOR_DEF("interface/editor/localize_settings", true); EDITOR_DEF_RST("interface/scene_tabs/restore_scenes_on_load", false); EDITOR_DEF_RST("interface/scene_tabs/show_thumbnail_on_hover", true);