From dcf742edb4fac4fb52a5c0d1d7cb3d8c1a401d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 9 Aug 2026 14:32:35 +0200 Subject: [PATCH] Dsable AndroidHwScale by default AndroidHwScale defaults to 0 instead of the old device/resolution-based heuristic (which is removed along with DefaultAndroidHwScale()). Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01L4QAoxV2KY7ek4PcZw3WvY ... --- Core/Config.cpp | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 8d06ca3f13..07ea027eff 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -437,34 +437,6 @@ static int DefaultFastForwardMode() { #endif } -static int DefaultAndroidHwScale() { -#if PPSSPP_PLATFORM(ANDROID) - if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 19 || System_GetPropertyInt(SYSPROP_DEVICE_TYPE) == DEVICE_TYPE_TV) { - // Arbitrary cutoff at Kitkat - modern devices are usually powerful enough that hw scaling - // doesn't really help very much and mostly causes problems. See #11151 - return 0; - } - - // Get the real resolution as passed in during startup, not dp_xres and stuff - int xres = System_GetPropertyInt(SYSPROP_DISPLAY_XRES); - int yres = System_GetPropertyInt(SYSPROP_DISPLAY_YRES); - - if (xres <= 960) { - // Smaller than the PSP*2, let's go native. - return 0; - } else if (xres <= 480 * 3) { // 720p xres - // Small-ish screen, we should default to 2x - return 2 + 1; - } else { - // Large or very large screen. Default to 3x psp resolution. - return 3 + 1; - } - return 0; -#else - return 1; -#endif -} - // See issue 14439. Should possibly even block these devices from selecting VK. const char * const vulkanDefaultBlacklist[] = { "Sony:BRAVIA VH1", @@ -725,7 +697,7 @@ static const ConfigSetting graphicsSettings[] = { ConfigSetting("TextureFiltering", SETTING(g_Config, iTexFiltering), 1, CfgFlag::PER_GAME | CfgFlag::REPORT), ConfigSetting("Smart2DTexFiltering", SETTING(g_Config, bSmart2DTexFiltering), false, CfgFlag::PER_GAME | CfgFlag::REPORT), ConfigSetting("InternalResolution", SETTING(g_Config, iInternalResolution), &DefaultInternalResolution, CfgFlag::PER_GAME | CfgFlag::REPORT), - ConfigSetting("AndroidHwScale", SETTING(g_Config, iAndroidHwScale), &DefaultAndroidHwScale, CfgFlag::DEFAULT), + ConfigSetting("AndroidHwScale", SETTING(g_Config, iAndroidHwScale), 0, CfgFlag::DEFAULT), ConfigSetting("HighQualityDepth", SETTING(g_Config, bHighQualityDepth), true, CfgFlag::PER_GAME | CfgFlag::REPORT), ConfigSetting("FrameSkip", SETTING(g_Config, iFrameSkip), 0, CfgFlag::PER_GAME | CfgFlag::REPORT), ConfigSetting("AutoFrameSkip", SETTING(g_Config, bAutoFrameSkip), IsVREnabled(), CfgFlag::PER_GAME | CfgFlag::REPORT),