From fb8443a2192e5223f67736a0aded9a5f624f85e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Wed, 17 Dec 2025 08:20:49 +0200 Subject: [PATCH] [iOS] Automatically enable `iphone-ipad-minimum-performance-a12` is project is using Forward+/Mobile renderer. --- editor/export/editor_export_platform_apple_embedded.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/export/editor_export_platform_apple_embedded.cpp b/editor/export/editor_export_platform_apple_embedded.cpp index 930cfe8d2e..d2cbb5c1ae 100644 --- a/editor/export/editor_export_platform_apple_embedded.cpp +++ b/editor/export/editor_export_platform_apple_embedded.cpp @@ -235,6 +235,10 @@ bool EditorExportPlatformAppleEmbedded::get_export_option_visibility(const Edito p_option == "application/signature") { return advanced_options_enabled; } + if (p_option == "capabilities/performance_a12") { + String rendering_method = get_project_setting(Ref(p_preset), "rendering/renderer/rendering_method.mobile"); + return !(rendering_method == "forward_plus" || rendering_method == "mobile"); + } return true; } @@ -498,6 +502,7 @@ String EditorExportPlatformAppleEmbedded::_process_config_file_line(const Ref capabilities_list = p_config.capabilities; + String rendering_method = get_project_setting(p_preset, "rendering/renderer/rendering_method.mobile"); if ((bool)p_preset->get("capabilities/access_wifi") && !capabilities_list.has("wifi")) { capabilities_list.push_back("wifi"); @@ -505,7 +510,7 @@ String EditorExportPlatformAppleEmbedded::_process_config_file_line(const Refget("capabilities/performance_gaming_tier") && !capabilities_list.has("iphone-performance-gaming-tier")) { capabilities_list.push_back("iphone-performance-gaming-tier"); } - if ((bool)p_preset->get("capabilities/performance_a12") && !capabilities_list.has("iphone-ipad-minimum-performance-a12")) { + if (((bool)p_preset->get("capabilities/performance_a12") || rendering_method == "forward_plus" || rendering_method == "mobile") && !capabilities_list.has("iphone-ipad-minimum-performance-a12")) { capabilities_list.push_back("iphone-ipad-minimum-performance-a12"); } for (const String &capability : capabilities_list) {