شركة Gameloft تحقّق أقل من استهلاك طاقة الجهاز بنسبة %70، ما يؤدي إلى زيادة وقت اللعب بنسبة% 35 باستخدام واجهة برمجة التطبيقات Game Mode API.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
خلفية
على مدار أكثر من 20 عامًا، أنشأت Gameloft تجارب ألعاب مبتكرة للمنصات الرقمية، بدءًا من الألعاب على الأجهزة الجوّالة وصولاً إلى ألعاب أجهزة الكمبيوتر ووحدات التحكّم المتعددة المنصّات. وبالإضافة إلى شركاتها التجارية المعروفة، طوّرت شركة Gameloft ألعابًا لعلامات تجارية رائجة، مثل LEGO وUniversal وHasbro. يصل عدد اللاعبين في ألعابهم إلى 55 مليون لاعب فردي في أكثر من 100 بلد شهريًا، مع فريق مكوّن من 3,600 شخص من جميع أنحاء العالم.
الإجراءات التي اتخذتها الشركة
تم إصدار لعبة السباق الكلاسيكية Asphalt 9: Legends لأول مرة في عام 2018، وقد كانت بحاجة إلى طريقة لتحقيق التوازن بين الأداء والدقة والبطارية. ولتحقيق ذلك، استخدمت Gameloft في الأصل نظامًا داخليًا يُطلق عليه "خيارات اللعبة" أتاح للمستخدمين الاختيار من بين ثلاثة إعدادات: الأداء الأفضل أو الجودة الأفضل أو تحقيق التوازن بين الاثنين. وإذا لم يختَر اللاعب إعدادًا، ستختار اللعبة أحد هذه الإعدادات تلقائيًا استنادًا إلى جهاز المستخدِم.
عدّلت شركة Gameloft مؤخرًا اللعبة لتضمين Game Mode API كوسيلة لتحسين تجربة اللعب للمستخدمين الذين يملكون أجهزة حديثة. ومن خلال "وضع الألعاب"، تم منح اللاعبين الإذن باستخدام لوحة بيانات الألعاب لتخصيص أداء اللعبة وضبط إعدادات النظام الأخرى التي تؤثر في تجربة اللعب.
بما أنّ المستخدمين قد اعتادوا على الاطّلاع على ميزة خيارات الألعاب في Asphalt 9، دمجتها شركة Gameloft مع واجهة برمجة التطبيقات Game Mode API في الخلفية، ما أدّى إلى تحسين الميزة بدون التأثير سلبًا في تجربة المستخدمين. يمكن للمستخدمين الاختيار من بين أربعة خيارات:
STANDARD (60 لقطة في الثانية على الأجهزة المتوافقة و30 لقطة في الثانية على الأجهزة المنخفضة المواصفات)
الأداء (أفضل جودة ولكن تستهلك موارد كثيرة على الأجهزة المتطورة، سرعة 60 لقطة في الثانية ولكن بجودة أقل على الأجهزة المنخفضة المواصفات)
البطارية (30 لقطة في الثانية لتقليل استخدام البطارية)، أو
غير مسموح به (تظل الإعدادات المرئية في قائمة الخيارات)
في "وضع البطارية"، يتم تقليل الدقة الرسومية للتفاصيل البيئية من أجل تقليل استهلاك الطاقة. كما تتم إزالة المهام الحاسوبية العالية مثل العمليات الحسابية لتتبُّع الأشعة للانعكاسات في السيارة وعمق الحقل للدعائم البيئية، ويتم تبسيط أدوات التظليل المعقّدة لتمويه الحركة وتأثيرات الطقس. كما يتم تحديد عدد اللقطات في الثانية عند 30 لقطة في الثانية، وذلك لتوفير عبء العمل على وحدة المعالجة المركزية (CPU) ووحدة معالجة الرسومات.
يعمل تطبيق Asphalt 9 في "وضع البطارية"
وفي "وضع الأداء"، تكتشف اللعبة قدرات جهاز المستخدم وتطبِّق الإعدادات المُثلى للموارد لتحقيق أقصى قدر من الانغماس بدون ضبط الجهاز على الحد المطلوب. يمكن تعزيز الأجهزة مؤقتًا لتحقيق أفضل أداء، ولكنّها ليست فعّالة في استهلاك الطاقة وتتسبّب في الكثير من الحرارة. من خلال تحقيق أفضل أداء ممكن باعتدال، مثلاً أثناء التحميل، ثم خفضه للوصول إلى أداء مستدام، يتم تحسين استخدام الطاقة وتقديم تجربة أفضل للمستخدم بشكل عام.
يعمل تطبيق Asphalt 9 في "وضع الأداء"
النتائج
وتوقّعت شركة Gameloft أن يستمتع اللاعبون بالأداء العالي وأسلوب اللعب، إلا أنّ وضع البطارية هو الأكثر تأثيرًا من حيث الأداء. على بعض الأجهزة الجوّالة، ساهم "وضع البطارية" في تقليل استهلاك الطاقة في Asphalt 9 بنسبة تصل إلى %70، ما أدّى إلى زيادة وقت التشغيل بنسبة% 35 في المتوسط واستخدام جهاز أكثر برودة في اليد.
وقال "ألكسندرو دوميترو"، مدير عمليات النشر في Gameloft: "كان من السهل إدارة عملية التنفيذ هذه، وكان الفريق يقدّر توفّر طريقة بسيطة لتقديم أحدث وأروع تجربة أداء للمستخدمين".
استنادًا إلى نجاحها، تعتزم شركة Gameloft استخدام واجهة برمجة التطبيقات Game Mode API على الألعاب الأخرى التي تندرج ضمنها. من المفترَض أن يقدّر لاعبو ألعاب الرماية واللاعبين الذين يتنافسون في المنافسة مع ألعاب الرماية الأداء الإضافي، في حين أنّ وضع توفير شحن البطارية قد يستفيد من إنشاء ألعاب محاكاة.
بدء استخدام "وضع الألعاب"
يمكنك فهم المستخدمين واتّخاذ قرارات أفضل بشأن الأداء ومفاضلات الدقة باستخدام Game Mode API.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2020-06-01 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2020-06-01 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Gameloft reduces device power consumption by 70%, resulting in 35% longer play time with the Game Mode API\n\nBackground\n----------\n\nFor more than 20 years, [Gameloft](https://play.google.com/store/apps/dev?id=4826827787946964969) has created innovative gaming experiences for digital platforms, from mobile games to cross-platform PC and console titles. In addition to its own established franchises, Gameloft develops games for popular brands like LEGO, Universal, and Hasbro. With a team of 3,600 people worldwide, their games reach 55 million unique players in over 100 countries every month.\n\nWhat they did\n-------------\n\nFirst released in 2018, racing arcade game [Asphalt 9: Legends](https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftA9HM) needed a way to balance performance, fidelity, and battery. To do this, Gameloft originally used an in-house system called \"game options,\" which allowed users to choose from three settings: better performance, better quality, or a balance of the two. If the player didn't choose a setting, the game would select one automatically based on the user's device.\n\nRecently, Gameloft updated the game to incorporate the [Game Mode API](/games/gamemode/gamemode-api) as a way to improve the gameplay experience for users with newer devices. With Game Mode, they empowered players to use the [Game Dashboard](/games/gamedashboard/aboutdashboard) to customize the game's performance and adjust other system settings that affect their play experience.\n\nBecause users were already used to seeing Asphalt 9's game options feature, Gameloft integrated it with the Game Mode API in the background, improving the feature without disrupting the user experience. Users could choose from four options:\n\n- [STANDARD](/reference/android/app/GameManager#GAME_MODE_STANDARD) (60FPS on devices that support it and 30FPS on low-end devices),\n- [PERFORMANCE](/reference/android/app/GameManager#GAME_MODE_PERFORMANCE) (best quality but resource-intensive on high-end devices, 60FPS but lower quality on low-end devices),\n- [BATTERY](/reference/android/app/GameManager#GAME_MODE_BATTERY) (30FPS to reduce battery use), or\n- [UNSUPPORTED](/reference/android/app/GameManager#GAME_MODE_UNSUPPORTED) (visual settings stay in the options menu)\n\nIn Battery mode, graphic fidelity of environmental details is reduced to lower power consumption. High computational tasks such as ray tracing calculations for the reflections on the car and depth of field for the environmental props are removed, and complex shaders for motion blur and weather effects are simplified. The frame rate is also capped at 30FPS to save on CPU and GPU workload.\n**Asphalt 9 running in BATTERY Mode**\n\nIn Performance mode, the game detects the user's device capabilities and applies the optimal configuration of resources for maximum immersion without causing the device to thermally throttle. While devices can be boosted temporarily to deliver peak performance, it's not energy-efficient and generates a lot of heat. Entering peak performance sparingly, such as during loading, and then lowering to sustained performance optimizes the use of energy and provides a better user experience overall.\n**Asphalt 9 running in PERFORMANCE Mode**\n\nResults\n-------\n\nGameloft expected players to enjoy the improved performance and gameplay, but it was Battery mode that had some of the biggest impact. **On some mobile devices, Battery mode reduced Asphalt 9's power consumption by up to 70%, resulting in 35% longer play time on average and a cooler device in the player's hand.**\n\n\"The implementation was easy to manage,\" said Alexandru Dumitru, Publishing Operations Manager at Gameloft, \"and the team appreciated having a simple way to offer their users the latest and greatest performance experience.\"\n\nBased on their success, Gameloft intends to implement the Game Mode API on other games in their portfolio. Players of competitive multiplayer and shooter titles would appreciate the extra performance, while building sims could benefit from the battery-saving mode.\n\nGet started with Game Mode\n--------------------------\n\nUnderstand your users and make better decisions about performance and fidelity tradeoffs by using the [Game Mode API](/games/gamemode/gamemode-api)."]]