From c9ad789c17eda8b14fa5832cdc5e34681498ed62 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 23 Mar 2022 12:02:20 +0100 Subject: [PATCH] Add comment on why the low processor usage doesn't work on android. --- platform/android/os_android.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index 2af10732b..da93f97a8 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -280,6 +280,9 @@ void OS_Android::set_keep_screen_on(bool p_enabled) { void OS_Android::set_low_processor_usage_mode(bool p_enabled) { #ifdef TOOLS_ENABLED // Disabled as it causes flickers. We also expect the devices running Godot in editor mode to be high end. + // The actual reason for this is that android swaps framebuffers by itself after the end of GodotRenderer.onDrawFrame() + // However GodotRenderer.onDrawFrame() steps godot's mainloop, which processes input, and then it decides whether to draw frames or not + // (if in low processor mode) OS_Unix::set_low_processor_usage_mode(false); #else OS_Unix::set_low_processor_usage_mode(p_enabled);