local DeviceLODSetting = { --region 之前的老数据,先注掉 --分辨率GPU白名单 --UltraResolutionGPUWhiteList = { -- ["Adreno 650"] = 1280, -- ["Adreno 660"] = 1280, -- ["Adreno 730"] = 1280, -- ["Adreno 740"] = 1280, -- ["Adreno 750"] = 1280, -- ["Mali-G77"] = 1280, -- ["Mali-G78"] = 1280, -- ["Mali-G715"] = 1280, -- ["Mali-G710"] = 1280, -- ["Mali-G610"] = 1280, --}, --分辨率机型名称白名单 --UltraResolutionWhiteListDeviceName = { -- --iPhone -- ["iPhone13,2"] = 1170, --iPhone 12 1170 2532 -- ["iPhone13,3"] = 1170, --iPhone 12 Pro 1170 2532 -- ["iPhone13,4"] = 1284, --iPhone 12 Pro Max 1284 2778 -- ["iPhone13,5"] = 1284, --iPhone 12 Pro Max 1284 2778 -- -- ["iPhone14,5"] = 1170, --iPhone 13 1170 2532 -- ["iPhone14,2"] = 1170, --iPhone 13 Pro 1170 2532 -- ["iPhone14,3"] = 1284, --iPhone 13 Pro Max 1284 2778 -- -- ["iPhone14,7"] = 1170, --iPhone 14 1170 2532 -- ["iPhone14,8"] = 1284, --iPhone 14 Plus 1284 2778 -- ["iPhone15,2"] = 1179, --iPhone 14 Pro 1179 2556 -- ["iPhone15,3"] = 1290, --iPhone 14 Pro Max 1290 2796 -- -- ["iPhone15,4"] = 1179, --iPhone 15 1179 2556 -- ["iPhone15,5"] = 1290, --iPhone 15 Plus 1290 2796 -- ["iPhone16,1"] = 1179, --iPhone 15 Pro 1179 2556 -- ["iPhone16,2"] = 1290, --iPhone 15 Pro Max 1290 2796 -- -- --iPad -- --region ****iPad Pro 11**** -- --Apple iPad Pro 11 (2018) -- ["iPad8,1"] = 1668 * 0.8, --iPad Pro (11-inch) 1668 2388 -- ["iPad8,2"] = 1668 * 0.8, --iPad Pro (11-inch) 1668 2388 -- ["iPad8,3"] = 1668 * 0.8, --iPad Pro (11-inch) 1668 2388 -- ["iPad8,4"] = 1668 * 0.8, --iPad Pro (11-inch) 1668 2388 -- -- --Apple iPad Pro 11 (2020) -- ["iPad8,9"] = 1668, --iPad Pro (11-inch) (2nd generation) 1668 2388 -- ["iPad8,10"] = 1668, --iPad Pro (11-inch) (2nd generation) 1668 2388 -- -- --Apple iPad Pro 11 (2021) -- ["iPad13,4"] = 1668, --iPad Pro (11-inch) (3rd generation) 1668 2388 -- ["iPad13,5"] = 1668, --iPad Pro (11-inch) (3rd generation) 1668 2388 -- ["iPad13,6"] = 1668, --iPad Pro (11-inch) (3rd generation) 1668 2388 -- ["iPad13,7"] = 1668, --iPad Pro (11-inch) (3rd generation) 1668 2388 -- -- --Apple iPad Pro 11 (2022) -- ["iPad14,3"] = 1668, --iPad Pro (11-inch) (4th generation) 1668 2388 -- ["iPad14,4"] = 1668, --iPad Pro (11-inch) (4th generation) 1668 2388 -- --endregion ****iPad Pro 11**** -- -- --region ****iPad Pro 12.9**** -- --Apple iPad Pro 12.9 (2018) -- ["iPad8,5"] = 2048 * 0.8, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 -- ["iPad8,6"] = 2048 * 0.8, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 -- ["iPad8,7"] = 2048 * 0.8, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 -- ["iPad8,8"] = 2048 * 0.8, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 -- -- --Apple iPad Pro 12.9 (2020) -- ["iPad8,11"] = 2048, --iPad Pro (12.9-inch) (4th generation) 2048 2732 -- ["iPad8,12"] = 2048, --iPad Pro (12.9-inch) (4th generation) 2048 2732 -- -- --Apple iPad Pro 12.9 (2021) -- ["iPad13,8"] = 2048, --iPad Pro (12.9-inch) (5th generation) 2048 2732 -- ["iPad13,9"] = 2048, --iPad Pro (12.9-inch) (5th generation) 2048 2732 -- ["iPad13,10"] = 2048, --iPad Pro (12.9-inch) (5th generation) 2048 2732 -- ["iPad13,11"] = 2048, --iPad Pro (12.9-inch) (5th generation) 2048 2732 -- -- --Apple iPad Pro 12.9 (2022) -- ["iPad14,5"] = 2048, --iPad Pro (12.9-inch) (6th generation) 2048 2732 -- ["iPad14,6"] = 2048, --iPad Pro (12.9-inch) (6th generation) 2048 2732 -- --endregion ****iPad Pro 12.9**** -- -- --region ****iPad Air**** -- --Apple iPad Air (2019) -- ["iPad11,3"] = 1668 * 0.8, --iPad Air (3rd generation) 1668 2224 -- ["iPad11,4"] = 1668 * 0.8, --iPad Air (3rd generation) 1668 2224 -- -- --Apple iPad Air (2020) -- ["iPad13,1"] = 1640, --iPad Air (4rd generation) 1640 2360 -- ["iPad13,2"] = 1640, --iPad Air (4rd generation) 1640 2360 -- -- --Apple iPad Air (2022) -- ["iPad13,16"] = 1640, --iPad Air (5th generation) 1640 2360 -- ["iPad13,17"] = 1640, --iPad Air (5th generation) 1640 2360 -- -- --endregion ****iPad Air**** -- -- --region ****iPad mini**** -- --Apple iPad mini (2019) -- ["iPad11,1"] = 1536, --iPad mini (5th generation) 1536 2048 -- ["iPad11,2"] = 1536, --iPad mini (5th generation) 1536 2048 -- -- --Apple iPad mini (2021) -- ["iPad14,1"] = 1488, --iPad mini (6th generation) 1488 2266 -- ["iPad14,2"] = 1488, --iPad mini (6th generation) 1488 2266 -- --endregion ****iPad mini**** -- -- --region ****iPad**** -- --Apple iPad 10.2 (2020) -- ["iPad11,6"] = 1620, --iPad (8th generation) 1620 2160 -- ["iPad11,7"] = 1620, --iPad (8th generation) 1620 2160 -- -- --Apple iPad 10.2 (2021) -- ["iPad12,1"] = 1620, --iPad (9th generation) 1620 2160 -- ["iPad12,2"] = 1620, --iPad (9th generation) 1620 2160 -- -- --Apple iPad (2022) (10th generation) -- ["iPad13,18"] = 1640, --iPad (10th generation) 1640 2360 -- ["iPad13,19"] = 1640, --iPad (10th generation) 1640 2360 -- --endregion ****iPad**** -- --}, --endregion --region 分辨率配置优化 UltraResolutionDeviceLimitInfo_iOS = { --1.不能开原生分辨率的设备 --iphone ["iPhone1,1"] = 0, ["iPhone1,2"] = 0, ["iPhone2"] = 0, ["iPhone3"] = 0, ["iPhone4"] = 0, ["iPhone5"] = 0, ["iPhone6"] = 0, ["iPhone6,1"] = 0, ["iPhone6,2"] = 0, ["iPhone7"] = 0, ["iPhone7,1"] = 0, ["iPhone7,2"] = 0, ["iPhone8,1"] = 0, ["iPhone8,2"] = 0, ["iPhone8,4"] = 0, ["iPhone9,1"] = 0, ["iPhone9,2"] = 0, ["iPhone9,3"] = 0, ["iPhone9,4"] = 0, ["iPhone10,1"] = 0, ["iPhone10,2"] = 0, ["iPhone10,3"] = 0, ["iPhone10,4"] = 0, ["iPhone10,5"] = 0, ["iPhone10,6"] = 0, ["iPhone11,2"] = 0, ["iPhone11,4"] = 0, ["iPhone11,6"] = 0, ["iPhone11,8"] = 0, ["iPhone12,1"] = 0, ["iPhone12,3"] = 0, ["iPhone12,5"] = 0, ["iPhone12,8"] = 0, ["iPhone13,1"] = 0, ["iPhone14,6"] = 0, --ipod? ["iPod1"] = 0, ["iPod2"] = 0, ["iPod3"] = 0, ["iPod4"] = 0, ["iPod5"] = 0, ["iPod7"] = 0, ["iPod9,1"] = 0, --ipad ["iPad1"] = 0, ["iPad2,1"] = 0, ["iPad2,2"] = 0, ["iPad2,3"] = 0, ["iPad2,4"] = 0, ["iPad2,5"] = 0, ["iPad2,6"] = 0, ["iPad2,7"] = 0, ["iPad3,1"] = 0, ["iPad3,2"] = 0, ["iPad3,3"] = 0, ["iPad3,4"] = 0, ["iPad3,5"] = 0, ["iPad3,6"] = 0, ["iPad4,1"] = 0, ["iPad4,2"] = 0, ["iPad4,3"] = 0, ["iPad4,4"] = 0, ["iPad4,5"] = 0, ["iPad4,6"] = 0, ["iPad4,7"] = 0, ["iPad4,8"] = 0, ["iPad4,9"] = 0, ["iPad5,1"] = 0, ["iPad5,2"] = 0, ["iPad5,3"] = 0, ["iPad5,4"] = 0, ["iPad6,3"] = 0, ["iPad6,4"] = 0, ["iPad6,7"] = 0, ["iPad6,8"] = 0, ["iPad6,11"] = 0, ["iPad6,12"] = 0, ["iPad7,1"] = 0, ["iPad7,2"] = 0, ["iPad7,3"] = 0, ["iPad7,4"] = 0, ["iPad7,5"] = 0, ["iPad7,6"] = 0, ["iPad7,11"] = 0, ["iPad7,12"] = 0, --2.可以略微提高分辨率的iOS设备 --Apple iPad Pro 11 (2018) ["iPad8,1"] = 1280, --iPad Pro (11-inch) 1668 2388 ["iPad8,2"] = 1280, --iPad Pro (11-inch) 1668 2388 ["iPad8,3"] = 1280, --iPad Pro (11-inch) 1668 2388 ["iPad8,4"] = 1280, --iPad Pro (11-inch) 1668 2388 --Apple iPad Pro 12.9 (2018) ["iPad8,5"] = 1600, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 ["iPad8,6"] = 1600, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 ["iPad8,7"] = 1600, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 ["iPad8,8"] = 1600, --iPad Pro (12.9-inch) (3rd generation) 2048 2732 --Apple iPad Air (2019) ["iPad11,3"] = 1280, --iPad Air (3rd generation) 1668 2224 ["iPad11,4"] = 1280, --iPad Air (3rd generation) 1668 2224 }, AndroidUltraResolutionRankLimit = 120, --安卓的gpuRank大于这个值就可以开原生分辨率 PadHeightCheck_iOS = 1920, --iOS达到这个值就提高到pad原生分辨率 PadHeightCheck_Android = 1800, --安卓达到这个值就提高到pad原生分辨率 ScreenResolutionSetting = { Low = 720, --低分辨率 High = 1080, --高分辨率 UltraHigh = 1280, --原生分辨率限制 UltraHigh_AndroidPad = 1600, --原生分辨率限制-安卓Pad UltraHigh_iOSPad = 2048, -- 原生分辨率限制-iOSOPad }, --endregion --特效预设PsPresetID、DeviceLod PSPresetConfig = { --默认预设 [-1] = { [0] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [1] = {["SelfLOD"] = 1, ["OtherLOD"] = 1}, [2] = {["SelfLOD"] = 2, ["OtherLOD"] = 2}, }, --大规模PVP [1001] = { [0] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [1] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [2] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, }, --小规模PVP [1002] = { [0] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [1] = {["SelfLOD"] = 1, ["OtherLOD"] = 0}, [2] = {["SelfLOD"] = 2, ["OtherLOD"] = 1}, }, --标准模式 [1003] = { [0] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [1] = {["SelfLOD"] = 1, ["OtherLOD"] = 1}, [2] = {["SelfLOD"] = 2, ["OtherLOD"] = 2}, }, --性能模式 [1005] = { [0] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [1] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, [2] = {["SelfLOD"] = 0, ["OtherLOD"] = 0}, }, }, QualitySetting = { [0] = { --["KEY_SETTING_FrameLimitation"] = 0, --帧率设置,不要跟画质绑定 ["KEY_SETTING_Water"] = 0, ["KEY_SETTING_ShaderQuality"] = 0, ["KEY_SETTING_ShadowQuality"] = 0, ["KEY_SETTING_ParticleQuality"] = 0, ["KEY_SETTING_Bloom"] = 0, ["KEY_SETTING_ScreenResolution"] = 0, ["KEY_SETTING_DOF"] = 0, ["KEY_SETTING_AA"] = 0, ["KEY_SETTING_Texture"] = 0, ["KEY_SETTING_LodGroupBias"] = 0, ["KEY_SETTING_ColorGrading"] = 0, ["KEY_SETTING_LightShaft"] = 0, }, [1] = { --["KEY_SETTING_FrameLimitation"] = 0, ["KEY_SETTING_Water"] = 1, ["KEY_SETTING_ShaderQuality"] = 1, ["KEY_SETTING_ShadowQuality"] = 1, ["KEY_SETTING_ParticleQuality"] = 1, ["KEY_SETTING_Bloom"] = 1, ["KEY_SETTING_ScreenResolution"] = 1, ["KEY_SETTING_DOF"] = 0, ["KEY_SETTING_AA"] = 0, ["KEY_SETTING_Texture"] = 1, ["KEY_SETTING_LodGroupBias"] = 1, ["KEY_SETTING_ColorGrading"] = 1, ["KEY_SETTING_LightShaft"] = 0, }, [2] = { --["KEY_SETTING_FrameLimitation"] = 0, ["KEY_SETTING_Water"] = 1, ["KEY_SETTING_ShaderQuality"] = 2, ["KEY_SETTING_ShadowQuality"] = 2, ["KEY_SETTING_ParticleQuality"] = 2, ["KEY_SETTING_Bloom"] = 1, ["KEY_SETTING_ScreenResolution"] = 2, ["KEY_SETTING_DOF"] = 0, ["KEY_SETTING_AA"] = 0, ["KEY_SETTING_Texture"] = 2, ["KEY_SETTING_LodGroupBias"] = 2, ["KEY_SETTING_ColorGrading"] = 1, ["KEY_SETTING_LightShaft"] = 1, } }, SettingAPI = { ["KEY_SETTING_FrameLimitation"] = function(level) SettingAPI.fpsLevel = level end, ["KEY_SETTING_Water"] = function(level) SettingAPI.waterLevel = level end, ["KEY_SETTING_ShaderQuality"] = function(level) SettingAPI.ShaderLodLevel = level end, ["KEY_SETTING_ShadowQuality"] = function(level) SettingAPI.shadowLevel = level end, ["KEY_SETTING_ParticleQuality"] = function(level) SettingAPI.ParticleLodLevel = level end, ["KEY_SETTING_Bloom"] = function(level) SettingAPI.glow = level end, ["KEY_SETTING_ScreenResolution"] = function(level) SettingAPI.resolutionLevel = level end, ["KEY_SETTING_DOF"] = function(level) SettingAPI.DOFLevel = level end, ["KEY_SETTING_AA"] = function(level) SettingAPI.aaLevel = level end, ["KEY_SETTING_Texture"] = function(level) SettingAPI.textureLevel = level end, ["KEY_SETTING_LodGroupBias"] = function(level) SettingAPI.LodBiasLevel = level end, ["KEY_SETTING_ColorGrading"] = function(level) SettingAPI.ColorGradingLevel = level end, ["KEY_SETTING_LightShaft"] = function(level) SettingAPI.LightShaftLevel = level end, }, GetSettingAPIValue = { ["KEY_SETTING_FrameLimitation"] = function() return SettingAPI.fpsLevel end, ["KEY_SETTING_Water"] = function() return SettingAPI.waterLevel end, ["KEY_SETTING_ShaderQuality"] = function() return SettingAPI.ShaderLodLevel end, ["KEY_SETTING_ShadowQuality"] = function() return SettingAPI.shadowLevel end, ["KEY_SETTING_ParticleQuality"] = function() return SettingAPI.ParticleLodLevel end, ["KEY_SETTING_Bloom"] = function() return SettingAPI.glow end, ["KEY_SETTING_ScreenResolution"] = function() return SettingAPI.resolutionLevel end, ["KEY_SETTING_DOF"] = function() return SettingAPI.DOFLevel end, ["KEY_SETTING_AA"] = function() return SettingAPI.aaLevel end, ["KEY_SETTING_Texture"] = function() return SettingAPI.textureLevel end, ["KEY_SETTING_LodGroupBias"] = function() return SettingAPI.LodBiasLevel end, ["KEY_SETTING_ColorGrading"] = function() return SettingAPI.ColorGradingLevel end, ["KEY_SETTING_LightShaft"] = function() return SettingAPI.LightShaftLevel end, }, QualitySettingOverridePC = { [0] = { ["KEY_SETTING_AA"] = 1, }, [1] = { ["KEY_SETTING_AA"] = 1, }, [2] = { ["KEY_SETTING_AA"] = 1, } }, AdaptiveQualitySetting = { --部分玩法,进入就需要降低阴影质量,所以单独提出来作为第一次降档配置 [0] = { ["KEY_SETTING_ShadowQuality"] = 0, }, --比较重度的降低,画质影响较大,帧率需要单独控制 [1] = { ["KEY_SETTING_ShaderQuality"] = 0, ["KEY_SETTING_Bloom"] = 0, ["KEY_SETTING_ParticleQuality"] = 0, ["KEY_SETTING_ScreenResolution"] = 0, ["KEY_SETTING_LightShaft"] = 0, ["KEY_SETTING_AA"] = 0, }, --性能消耗不那么大,最后降低 [2] = { ["KEY_SETTING_Water"] = 0, ["KEY_SETTING_LodGroupBias"] = 0, ["KEY_SETTING_ColorGrading"] = 0, }, }, } return DeviceLODSetting