تتطلّب ألعاب الأجهزة الجوّالة العالية الدقة موارد كبيرة من وحدة معالجة الرسومات ووحدة المعالجة المركزية، ما يؤدي في أغلب الأحيان
إلى توليد حرارة زائدة وخفض الأداء بسبب الحرارة على أجهزة Android.
لاحظت شركة Netmarble أنّ جلسات اللعب الطويلة أدّت إلى زيادة
درجة حرارة الجهاز، ما أدّى إلى انخفاض الأداء، بما في ذلك انخفاض عدد اللقطات في الثانية وعدم اتساق الأداء. كان التحدي الأساسي هو الحفاظ على تجربة visually
تفاعلية مع إدارة درجات حرارة الجهاز بفعالية لتجنّب
التباطؤ وضمان الأداء المستدام.
الحل
اعتمدت شركة Netmarble منهجًا مستندًا إلى البيانات لاستخدام ADPF، مع التركيز على التعديلات الديناميكية
استنادًا إلى الحالة الحرارية في الوقت الفعلي.
تحديد العوامل التي تؤثّر سلبًا في الأداء
أجرت شركة Netmarble تحليلاً دقيقاً للأداء، حيث تم قياس تأثير
إعدادات جودة الرسومات المختلفة على معدّل عرض اللقطات والحمل الحراري. أظهرت هذه التحليلات أنّ تغيير درجة الدقة كان له التأثير الأكبر على حمولة وحدة معالجة الرسومات وإخراج الحرارة، بدون التأثير بشكل كبير في معدّلات عرض اللقطات. من المهم الإشارة إلى أنّه
تبيّن لهم أنّ خيارات الرسومات الأخرى (التظليل والقوام وما إلى ذلك) كان لها أثر
ضئيل نسبيًا في الأداء الحراري العام.
تغيير الدقة الديناميكي
أضافت Netmarble نظامًا ديناميكيًا لدقة الشاشة. ويغيّر هذا الخيار جودة الصورة في اللعبة
استنادًا إلى درجة حرارة الجهاز، وذلك باستخدام واجهة برمجة التطبيقات ADPF Thermal API. يتيح ذلك للعبّة التكيف مع الظروف المختلفة. عندما يكون الجهاز باردًا، تستخدم اللعبة دقة
عالية. إذا ارتفعت درجة حرارة الجهاز بشكل كبير، تخفض اللعبة درجة الدقة لمحاولة تقليل الحرارة.
تعديل معدّل عرض اللقطات التكيّفي
بالإضافة إلى تغيير درجة الدقة، نفّذت Netmarble تعديلات ديناميكية على عدد اللقطات في الثانية.
إذا تم ضبط عدد اللقطات في الثانية المستهدَف للعبة على 60، يمكن للنظام خفض عدد اللقطات في الثانية
المستهدف تدريجيًا عند رصد ارتفاع كبير في درجة الحرارة.
لتجنُّب المشاكل الحرارية، حدّدت Netmarble الحد الأدنى لعدد اللقطات في الثانية القابل للتعديل على 30 لقطة في الثانية.
وقد ساعد ذلك في ضمان تجربة لعب متّسقة. بالإضافة إلى ذلك، تم
تصميم النظام لزيادة عدد اللقطات في الثانية تدريجيًا إلى المستوى المستهدف عند انخفاض درجة الحرارة،
مع الحفاظ على الأداء الأمثل.
النتائج
أدّى استخدام ميزة "تصغير/تكبير الدقة الديناميكي" وتعديل معدّل اللقطات في الثانية التكيُّفي،
باستخدام تقنية ADPF، إلى تحسينات كبيرة في إدارة الحرارة
والأداء المستدام.
Netmarble: مقارنة الأداء
تحسين هامش الحرارة: خفضت ميزة "إدارة الطاقة الذكية للتطبيقات" متوسط هامش الحرارة من
1.04 إلى 0.92 (انخفاض بنسبة% 11)، ما منع تدهور الأداء و
حسّن من عمر الجهاز. لم تتجاوز قيمة هامش الحرارة 1.0،
وبالتالي تم منع ارتفاع درجة حرارة الجهاز.
عدد لقطات أكثر اتساقًا في الثانية: توفّر ميزة ADPF تجربة لعب أكثر سلاسة
من خلال تعديل عدد اللقطات المستهدَف في الثانية للّعبة بشكل ذكي استنادًا إلى حالة الجهاز
الحرارية. بدون ميزة ADPF، قد تتفاوت معدّلات اللقطات في الثانية للّعبة بشكلٍ ملحوظ
(على سبيل المثال، من 40 إلى 56) بسبب الحدّ من الأداء بسبب الحرارة. إنّ معدّل التحديث المتفاوت للّقطات، والذي يرجع إلى صعوبة الجهاز في إدارة الحرارة، يمكن أن يؤدي إلى تجربة لعب صاخبة وغير سارة. باستخدام ميزة ADPF، تعمل اللعبة بشكل استباقي على خفض عدد اللقطات المستهدَف في الثانية حسب الحاجة لمنع تراكم الحرارة الزائدة، ما يضمن عددًا
أكثر ثباتًا واتساقًا من اللقطات في الثانية، عادةً ما يكون ضمن النطاق من 50 إلى 60 لقطة في الثانية. ويؤدي ذلك إلى منع الانخفاض المفاجئ في عدد اللقطات في الثانية المرتبط بخفض الأداء بسبب الحرارة، ما يؤدي إلى تحسين تجربة اللاعبين بشكل كبير وجعلها أكثر متعة.
رسومات عالية الجودة محفوظة: من خلال إعطاء الأولوية لتوسيع نطاق الدقة باعتبارها
آلية التعديل الأساسية، خفّضت Netmarble التأثير البصري
لإدارة الحرارة، مع إبقاء الإعدادات الأخرى (الأشكال والتأثيرات وما إلى ذلك) عند
مستويات أعلى.
الخاتمة
من خلال التركيز على ضبط درجة الدقة وتعديل عدد اللقطات في الثانية بشكل ديناميكي استنادًا إلى ADPF،
نجحت شركة Netmarble في الحد من مشاكل ارتفاع درجة الحرارة في لعبة Game of Thrones:
Kingsroad مع الحفاظ على التوازن الأمثل بين الأداء والجودة المرئية وتجربة المستخدم. ويُبرز استخدامهم الاستراتيجي لميزة "الإعلانات أثناء التشغيل" نهجًا فعالًا لمطوّري ألعاب الأجهزة الجوّالة الذين يواجهون تحديات مشابهة. وفّرت ميزة ADPF
تجربة أكثر موثوقية ومتعة واتساقًا، ما سمح للاعبين
باللعب لفترة أطول مع انخفاض عدد مرات انخفاض عدد اللقطات في الثانية وقلّة المخاوف بشأن سخونة الجهاز
الزائدة.
من خلال هذا الحل، تواصل Netmarble تقديم تجارب ألعاب
عالية الجودة مع ضمان أفضل أداء للأجهزة وطول عمرها.
بدء استخدام ADPF اليوم في Unity وUnreal وC++
على المطوّرين المهتمين باستخدام ميزة "توافق Android" اتّباع الخطوات التالية:
تتبُّع أداء اللعبة للتأكّد من أنّها تلبي التوقعات جرِّب إعدادات مختلفة، مثل الدقة ومعدّلات عرض اللقطات والتظليل والقوام وما إلى ذلك، للعثور على أفضل أداء وأقل زيادة في درجة الحرارة.
يمكنك تغيير إعدادات جودة الرسومات بشكل منفصل للحد من الانخفاضات المفاجئة في الأداء.
بغض النظر عن المحرّك الذي تستخدمه، يمكنك في أي وقت اختيار استخدام واجهات برمجة التطبيقات
بشكل مباشر. يمكنك الاطّلاع على مزيد من المعلومات في مقالتَي توافق Android ومكوّن ADPF في Unreal Engine.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-03-05 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-05 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Netmarble Games: Optimizing Performance with ADPF\n\nNetmarble: Game of Thrones series logo Netmarble: battle scene Netmarble: battle scene with field boss Drogon\n\nNetmarble, a leading mobile game developer, developed\n[Game of Thrones: Kingsroad](https://gameofthrones.netmarble.com/en/) (coming soon to Android), an action-adventure\nRPG based on the Emmy® Award-winning and Golden Globe® winning Game of Thrones\nseries. They encountered performance challenges, specifically thermal\nthrottling, while running the game on Android devices, impacting sustained\nperformance and user experience. To address this, they strategically leveraged\nthe [Android Adaptive Performance Framework (ADPF)](/games/optimize/adpf) and implemented\noptimizations focused on resolution scaling and dynamic frame rate adjustment.\n\nChallenge\n---------\n\nHigh-fidelity mobile games demand significant GPU and CPU resources, often\nleading to excessive heat generation and thermal throttling on Android devices.\nNetmarble observed that prolonged gameplay sessions resulted in increased device\ntemperature, causing performance degradation, including frame rate drops and\ninconsistent performance. The core challenge was maintaining a visually\nengaging experience while effectively managing device temperatures to avoid\nthrottling and ensure sustained performance.\n\nSolution\n--------\n\nNetmarble adopted a data-driven approach to use ADPF, focusing on dynamic\nadjustments based on real-time thermal status.\n\n### Identify Performance Bottlenecks\n\nNetmarble conducted a meticulous performance analysis, measuring the impact of\nvarious graphics quality settings on both frame rates and thermal load. This\nanalysis revealed that resolution scaling had the most significant impact on GPU\nload and thermal output, without severely impacting frame rates. Importantly,\nthey found that other graphics options (shadows, textures, etc.) had a\ncomparatively minimal impact on overall thermal performance.\n\n### Dynamic Resolution Scaling\n\nNetmarble added a dynamic resolution system. It changes the game's image quality\nbased on the device's temperature, using the ADPF Thermal API. This lets the\ngame adapt to different conditions. When the device is cool, the game uses a\nhigh resolution. If the device gets too hot, the game lowers the resolution to\nreduce heat.\n\n### Adaptive Frame Rate Adjustment\n\nIn conjunction with resolution scaling, Netmarble implemented dynamic frame rate\nadjustments.\nIf the game's target FPS is set to 60, the system can gradually reduce the\ntarget FPS when excessive heat is detected.\nWhile avoiding the thermal issues, Netmarble set the minimum scalable FPS to 30.\nThis ensured a consistent gaming experience. Additionally, the system is\ndesigned to gradually increase the FPS back to the target when heat decreases,\nmaintaining optimal performance.\n\nResults\n-------\n\nThe implementation of dynamic resolution scaling and adaptive FPS adjustments,\ndriven by ADPF, resulted in significant improvements in thermal management and\nsustained performance.\nNetmarble: performance comparison\n\n- **Improved Thermal Headroom:** ADPF reduced average thermal headroom from 1.04 to 0.92 (11% reduction), preventing performance degradation and enhancing device longevity. The thermal headroom value never exceeded 1.0, hence preventing device overheating.\n- **More Consistent Frame Rates:** ADPF delivers a smoother gaming experience by intelligently adjusting the game's target FPS based on the device's thermal state. Without ADPF, the game's FPS could fluctuate significantly (e.g. from 40 to 56) due to thermal throttling. This inconsistent frame rate, caused by the device struggling to manage heat, can lead to a jarring and unpleasant gameplay experience. With ADPF, the game proactively reduces the target FPS as needed to prevent excessive heat buildup, ensuring a more stable and consistent frame rate, typically within the 50-60 FPS range. This prevents the abrupt frame drops associated with thermal throttling, resulting in a significantly improved and more enjoyable player experience.\n- **Preserved High-Quality Graphics:** By prioritizing resolution scaling as the primary adjustment mechanism, Netmarble minimized the visual impact of thermal management, keeping other settings (textures, effects, etc.) at higher levels.\n\nConclusion\n----------\n\nBy focusing on resolution scaling and dynamic FPS adjustments guided by ADPF,\nNetmarble successfully mitigated overheating issues in Game of Thrones:\nKingsroad while preserving an optimal balance between performance, visual\nquality, and user experience. Their strategic use of ADPF highlights an\neffective approach for mobile game developers facing similar challenges. ADPF\nenabled a more reliable, enjoyable, and consistent experience, allowing players\nto play longer with fewer frame drops and reduced concerns about device\noverheating.\nWith this solution in place, Netmarble continues to deliver high-quality gaming\nexperiences while ensuring optimal device performance and longevity.\n\nGet started with ADPF today in Unity, Unreal and C++\n----------------------------------------------------\n\nDevelopers who are interested in using Android Adaptability should do the\nfollowing:\n\n- Learn more about [ADPF](/games/optimize/adpf), the [Unreal Engine ADPF plugin](https://github.com/android/adpf-unreal-plugin), and the [Unity Adaptive Performance Android provider](https://docs.unity3d.com/Packages/com.unity.adaptiveperformance.google.android@5.1/manual/index.html).\n- Utilize ADPF with the default [Unity quality levels](https://docs.unity3d.com/Manual/class-QualitySettings.html) and [Unreal Engine scalability](https://dev.epicgames.com/documentation/en-us/unreal-engine/scalability-reference-for-unreal-engine).\n- Monitor the performance of the game to ensure that it is meeting expectations. Experiment with different settings - resolution, frame rates, shadows, textures, etc - to find the best performance and minimal thermal increase.\n- Change graphic quality settings separately to reduce sudden performance decreases.\n\nRegardless of which engine you use, you can always choose to use the APIs\ndirectly. Learn more at [Android Adaptability](/games/optimize/adpf) and\n[Unreal Engine ADPF plugin](https://github.com/android/adpf-unreal-plugin)."]]