Skip to content

Commit

Permalink
Default update_vital_only to true for Android and Web editor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lawnjelly committed Feb 9, 2023
1 parent 7722461 commit 0876a16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0876a16

Please sign in to comment.