UNISOC تستفيد من واجهة برمجة التطبيقات ADPF لتحسين أداء ألعاب Android
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يُعد تحسين الأداء وإدارة درجة الحرارة من التحديات المهمة التي تواجه مطوّري الألعاب على Android. لتقديم أفضل تجارب ممكنة للاعبين، يحتاج المطوّرون إلى أدوات لتحقيق التوازن بين معدّلات اللقطات العالية في الثانية واستهلاك الطاقة المستدام. يوفّر "إطار عمل الأداء الديناميكي في Android" (ADPF) مجموعة مهمة من واجهات برمجة التطبيقات التي تتيح للألعاب التفاعل مباشرةً مع أنظمة الطاقة والحرارة في الجهاز، ما يتيح إجراء هذا التحسين الدقيق.
تستفيد شركة UNISOC من هذه الأدوات لتقديم تجربة ألعاب فائقة على أنظمة التشغيل على الرقاقة (SoC). بدءًا من نظام التشغيل Android 14، تتوافق منتجات UNISOC تمامًا مع واجهات برمجة التطبيقات الأساسية في إطار ADPF، بما في ذلك Performance Hint وThermal وGame Mode/State. لتحسين الأداء بشكل أكبر على معالجات النظام على الشريحة، تستخدم شركة UNISOC واجهات برمجة تطبيقات ADPF هذه ضمن محرك UNISOC Miracle Gaming الخاص بها لرصد أحمال عمل النظام وتعديل الأداء بشكل ديناميكي، ما يضمن تجربة ألعاب أكثر سلاسة واستقرارًا.
الشكل 1: UNISOC Miracle Gaming
تحسين الأداء والحرارة باستخدام ADPF
يمنح تنفيذ UNISOC لواجهة ADPF المطوّرين أدوات فعّالة لإدارة أداء الألعاب في الوقت الفعلي.
تلميح بشأن الأداء: يتيح PerformanceHintManager للتطبيقات تمرير المعلومات إلى النظام، ما يمكّن المنظومة على الرقاقة (SoC) من تخصيص المقدار المناسب من الموارد في الوقت المناسب. من خلال تقديم تلميحات حول أحجام المعالجة وتسجيل المدة الفعلية لعرض اللقطات، يمكن للألعاب أن تساعد النظام في تسريع عملية الرسم وتركيب الطبقات بشكل ديناميكي، ما يؤدي إلى تحسين الأداء بشكل أكثر اتساقًا.
واجهة برمجة التطبيقات Thermal API: لمنع التقييد الحراري المزعج، يمكن للمطوّرين استخدام واجهة برمجة التطبيقات getThermalHeadroom(). تقدّم هذه الدالة توقّعًا بشأن حالة الجهاز الحرارية، ما يسمح للتطبيق بتعديل حجم المعالجة بشكل استباقي قبل حدوث ارتفاع في درجة الحرارة. وتُعد هذه القدرة على التنبؤ أمرًا أساسيًا لتحقيق ثبات معدل عرض اللقطات في الثانية أثناء الجلسات الطويلة والمكثفة.
واجهات برمجة التطبيقات لوضع الألعاب وحالة الألعاب: تعمل واجهات برمجة التطبيقات هذه على تحسين التواصل بين اللعبة والنظام. تتيح واجهة برمجة التطبيقات GameMode للمستخدمين الإشارة إلى نيتهم (على سبيل المثال، اختيار إعداد "الأداء" في اللعبة)، بينما تتيح واجهة برمجة التطبيقات GameState للعبة إبلاغ نظام التشغيل بحالتها الحالية (على سبيل المثال، التحميل أو التشغيل أو غير ذلك). بعد ذلك، يمكن للنظام الاستفادة من إجراءات مثل تغيير دقة الألعاب وتجاوز معدّل اللقطات في الثانية للألعاب لتحسين الأداء استنادًا إلى هذا السياق.
تقديم معدّلات إطارات محسّنة وكفاءة في استهلاك الطاقة
يؤدي دمج ADPF في أنظمة UNISOC على الرقاقات إلى تحسينات ملموسة في معدلات عرض اللقطات واستهلاك الطاقة وتجربة الألعاب بشكل عام. في الاختبارات التي أجريناها على لعبة LineageW الشهيرة من NCSOFT، كانت المزايا واضحة في مختلف إعدادات الرسومات.
عند ضبط جودة الرسومات على مستوى متوسط، حققت اللعبة زيادة كبيرة في عدد اللقطات في الثانية بنسبة 28.1% مع انخفاض في استهلاك الطاقة بنسبة 3.7% في الوقت نفسه، ما أدى إلى تحقيق فائدتَين مزدوجتَين، وهما تجربة أكثر سلاسة وكفاءة محسّنة.
كانت النتائج في الإعدادات الأخرى مبهرة أيضًا:
عند استخدام إعدادات الرسومات العالية، ارتفع معدل عرض اللقطات بنسبة 50.1%
مذهلة مع زيادة طفيفة في استهلاك الطاقة بنسبة 3.1% فقط، ما يوضّح قدرة ADPF على
إتاحة مساحة كبيرة لتحسين الأداء.
عند استخدام إعدادات الرسومات المنخفضة، لاحظ اللاعبون زيادة في عدد اللقطات في الثانية بنسبة 11.5% مع زيادة في استهلاك الطاقة بنسبة 9.9% ، ما يوضّح تحسُّن الأداء حتى في الإعدادات الأقل تطلّبًا.
الشكل 2: عدد لقطات منخفض في الثانيةالشكل 3: عدد لقطات متوسط في الثانيةالشكل 4: عدد لقطات مرتفع في الثانيةالشكل 5: استهلاك الطاقة
علاوةً على ذلك، توفّر UNISOC ميزة "التحسين التكيّفي". عندما يفعّل المستخدم هذا الخيار، يمكن للتطبيق تعديل العناصر الرسومية تلقائيًا، مثل جودة النسيج وأوراق الشجر والتأثيرات، استجابةً لملاحظات النظام، ما يضمن تقديم معدّل لقطات أكثر ثباتًا.
الخطوات التالية لتحسين الأداء التكيّفي على أنظمة UNISOC المتكاملة
تلتزم شركة UNISOC بتعزيز تكاملها مع واجهة برمجة التطبيقات ADPF. ومع تطوّر هذا الإطار، سيواصل محرّك UNISOC Miracle Gaming دمج أحدث ميزات ADPF الأساسية، ما يضمن استفادة المطوّرين واللاعبين من أحدث تقنيات الأداء والإدارة الحرارية على الأجهزة التي تعمل بمعالجات UNISOC.
بدء استخدام ميزة "التكيّف مع Android"
يتوفّر الآن إطار عمل "الأداء الديناميكي" على Android لجميع مطوّري ألعاب Android من خلال محركات ألعاب Unity وUnreal وCocos Creator ومن خلال مكتبات C++ الأصلية.
يمكن لمطوّري Unity البدء باستخدام موفر Adaptive Performance الإصدار 5.0.0. يُرجى العِلم أنّ معظم أجهزة Android تتوافق مع واجهة برمجة التطبيقات Thermal API بدءًا من Android 11 (المستوى 30 لواجهة برمجة التطبيقات)، ومع واجهة برمجة التطبيقات Performance Hint API بدءًا من Android 12 (المستوى 31 لواجهة برمجة التطبيقات).
بالنسبة إلى مطوّري Unreal، يمكنك البدء باستخدام
مكوّن Android الإضافي الديناميكي للأداء في Unreal Engine لمعظم أجهزة Android
التي تستهدف الإصدار 12 من نظام التشغيل Android (المستوى 31 لواجهة برمجة التطبيقات) أو الإصدارات الأحدث.
بالنسبة إلى Cocos Creator، يمكنك البدء باستخدام Thermal API من الإصدار 3.8.2
وPerformance Hint API من الإصدار 3.8.3.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-09 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-09 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# UNISOC Leverages ADPF for Enhanced Android Gaming Performance\n\nOptimizing performance and thermal management is a critical challenge for game\ndevelopers on Android. To create the best possible player experiences,\ndevelopers need tools to balance high frame rates with sustainable power\nconsumption. The Android Dynamic Performance Framework (ADPF) provides a crucial\nset of APIs that allow games to interact directly with the power and thermal\nsystems of a device, enabling this fine-tuned optimization.\n\nUNISOC is embracing these tools to deliver superior gaming on its SoCs. Starting\nwith Android 14, UNISOC products fully support core ADPF APIs, including\nPerformance Hint, Thermal, and Game Mode/State. To further enhance performance\non its SoCs, UNISOC utilizes these ADPF APIs within its own UNISOC Miracle\nGaming engine to monitor system workloads and dynamically adjust performance,\nensuring a smoother and more stable gaming experience.\nFigure 1: UNISOC Miracle Gaming\n\nOptimizing Performance and Thermals with ADPF\n---------------------------------------------\n\nUNISOC's implementation of ADPF gives developers powerful tools to manage game\nperformance in real-time.\n\n- **Performance Hint:** The `PerformanceHintManager` allows applications to pass\n information to the system, enabling the SoC to allocate the right amount of\n resources at the right time. By providing hints about workloads and reporting\n the actual duration of frames, games can help the system dynamically accelerate\n drawing and layer composition, leading to more consistent performance.\n\n- **Thermal API:** To prevent disruptive thermal throttling, developers can use\n the `getThermalHeadroom()` API. This function provides a prediction of the\n device's thermal state, allowing an application to proactively adjust its\n workload before overheating occurs. This foresight is key to stabilizing the\n game's frame rate during intense, long-lasting sessions.\n\n- **Game Mode and Game State APIs:** These APIs improve communication between\n the game and the system. `GameMode` allows users to signal their intent (e.g.,\n choosing a \"performance\" setting in the game), while `GameState` lets the game\n inform the OS of its current status (e.g., loading, playing, etc.). Under the\n hood, the system can then leverage interventions like Game Resolution Scaling\n and Game FPS Overrides to optimize performance based on this context.\n\nDelivering Improved Frame Rates and Power Efficiency\n----------------------------------------------------\n\nThe integration of ADPF on UNISOC SoCs delivers tangible improvements in frame\nrates, power consumption, and the overall gaming experience. In tests with the\npopular title LineageW from NCSOFT, the benefits were clear across various\ngraphics settings.\n\nAt medium graphics quality, the game achieved a significant **28.1% frame rate\nboost** while simultaneously **decreasing power consumption by 3.7%**, achieving\nthe dual benefits of a smoother experience and improved efficiency.\n\nThe results at other settings were also impressive:\n\n- At high graphics settings, the frame rate soared by an impressive **50.1%**\n with only a minor 3.1% increase in power draw, showcasing ADPF's ability to\n unlock significant performance headroom.\n\n- At low graphics settings, players saw an **11.5% increase in frame rate** with\n a corresponding **9.9% increase in power consumption**, demonstrating\n performance gains even on less demanding configurations.\n\nFigure 2: Low Graphics Frame Rate Figure 3: Mid Graphics Frame Rate Figure 4: High Graphics Frame Rate Figure 5: Power Consumption\n\nFurthermore, UNISOC demonstrates an \"Adaptive Optimization\" feature. When a user\nenables this option, the application can automatically adjust graphical elements\nlike texture, foliage, and effect quality in response to system feedback,\nensuring the delivery of a more stable frame rate.\n\nWhat's next for adaptive performance on UNISOC SoCs\n---------------------------------------------------\n\nUNISOC is committed to deepening its integration with ADPF. As the framework\nevolves, the UNISOC Miracle Gaming engine will continue to incorporate the\nlatest core ADPF features, ensuring that developers and gamers benefit from the\nmost up-to-date performance and thermal management technologies on\nUNISOC-powered devices.\n\nGet started with Android adaptability\n-------------------------------------\n\nThe Android Dynamic Performance Framework is now available to all Android game\ndevelopers for [Unity, Unreal, Cocos Creator game engines](/games/optimize/adpf/game-engine-support) and through native\nC++ libraries.\n\n- For **Unity** developers, you can get started with the\n [Adaptive Performance provider v5.0.0.](https://docs.unity3d.com/Packages/com.unity.adaptiveperformance.google.android@1.2/manual/index.html) Note that the Thermal API is\n supported by most Android devices from Android 11 (API level 30), and the\n Performance Hint API from Android 12 (API level 31).\n\n- For **Unreal** developers, you can get started with the\n [Android Dynamic Performance Unreal Engine plugin](https://github.com/android/adpf-unreal-plugin) for most Android devices\n targeting Android 12 (API level 31) or higher.\n\n- For **Cocos Creator** , you can get started with the Thermal API from v3.8.2\n and the Performance Hint API from [v3.8.3.](https://github.com/cocos/cocos-engine/tree/v3.8.3)\n\n- For custom engines, you can reference the [native ADPF C++ sample](https://github.com/android/games-samples/tree/main/agdk/adpf)."]]