yyl
2026-03-31 0fa617a09eedf6bdb25eda55fac1d3344859fd93
Main/Core/Platform/DeviceProfile.cs
@@ -59,12 +59,17 @@
            };
            
            // 根据内存判定性能档次
#if UNITY_WEBGL
            // WebGL下systemMemorySize不准确,默认中端
            profile.PerformanceLevel = PerformanceLevel.Medium;
#else
            if (profile.TotalMemory < 2048)
                profile.PerformanceLevel = PerformanceLevel.Low;
            else if (profile.TotalMemory < 4096)
                profile.PerformanceLevel = PerformanceLevel.Medium;
            else
                profile.PerformanceLevel = PerformanceLevel.High;
#endif
            
            return profile;
        }