From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl

---
 Main/Core/Platform/DeviceProfile.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Main/Core/Platform/DeviceProfile.cs b/Main/Core/Platform/DeviceProfile.cs
index d907b64..2ebecea 100644
--- a/Main/Core/Platform/DeviceProfile.cs
+++ b/Main/Core/Platform/DeviceProfile.cs
@@ -59,12 +59,17 @@
             };
             
             // 鏍规嵁鍐呭瓨鍒ゅ畾鎬ц兘妗f
+#if UNITY_WEBGL
+            // WebGL涓媠ystemMemorySize涓嶅噯纭紝榛樿涓
+            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;
         }

--
Gitblit v1.8.0