Gameloft مصرف انرژی دستگاه را تا 70 درصد کاهش می دهد و در نتیجه 35 درصد زمان بیشتری برای بازی با Game Mode API دارد.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پس زمینه
برای بیش از 20 سال، Gameloft تجربههای بازی نوآورانهای را برای پلتفرمهای دیجیتال، از بازیهای موبایل گرفته تا عناوین رایانههای شخصی و کنسولهای چند پلتفرمی ایجاد کرده است. گیم لافت علاوه بر فرنچایزهای تثبیت شده خود، بازی هایی را برای برندهای محبوبی مانند LEGO، Universal و Hasbro توسعه می دهد. با تیمی متشکل از 3600 نفر در سراسر جهان، بازی های آن ها هر ماه به 55 میلیون بازیکن منحصر به فرد در بیش از 100 کشور جهان می رسد.
کاری که آنها انجام دادند
بازی مسابقه ای Asphalt 9: Legends برای اولین بار در سال 2018 منتشر شد و به راهی برای متعادل کردن عملکرد، وفاداری و باتری نیاز داشت. برای انجام این کار، Gameloft در ابتدا از یک سیستم داخلی به نام «گزینههای بازی» استفاده میکرد که به کاربران اجازه میداد از بین سه تنظیمات انتخاب کنند: عملکرد بهتر، کیفیت بهتر یا تعادل بین این دو. اگر بازیکن تنظیماتی را انتخاب نکرده باشد، بازی به طور خودکار بر اساس دستگاه کاربر یکی را انتخاب میکند.
اخیراً، Gameloft بازی را بهروزرسانی کرده است تا از Game Mode API به عنوان راهی برای بهبود تجربه گیمپلی برای کاربران با دستگاههای جدیدتر استفاده کند. با حالت بازی، آنها به بازیکنان این امکان را دادند که از داشبورد بازی برای سفارشی کردن عملکرد بازی و تنظیم سایر تنظیمات سیستم که بر تجربه بازی آنها تأثیر می گذارد استفاده کنند.
از آنجایی که کاربران قبلاً به دیدن ویژگی گزینه های بازی Asphalt 9 عادت کرده بودند، Gameloft آن را با Game Mode API در پس زمینه ادغام کرد و بدون ایجاد اختلال در تجربه کاربر، این ویژگی را بهبود بخشید. کاربران می توانستند از بین چهار گزینه انتخاب کنند:
استاندارد (60 فریم در ثانیه در دستگاه هایی که از آن پشتیبانی می کنند و 30 فریم در ثانیه در دستگاه های ارزان قیمت)،
PERFORMANCE (بهترین کیفیت اما پر مصرف در دستگاههای پیشرفته، 60 فریم در ثانیه اما کیفیت پایینتر در دستگاههای رده پایین)،
پشتیبانی نشده (تنظیمات بصری در منوی گزینه ها باقی می مانند)
در حالت باتری، وفاداری گرافیکی جزئیات محیطی به مصرف انرژی کمتر کاهش می یابد. وظایف محاسباتی بالا مانند محاسبات ردیابی پرتو برای انعکاس روی ماشین و عمق میدان برای تجهیزات محیطی حذف می شوند و سایه بان های پیچیده برای تاری حرکت و اثرات آب و هوا ساده می شوند. نرخ فریم نیز روی 30 فریم در ثانیه محدود شده است تا در حجم کاری CPU و GPU صرفه جویی شود.
آسفالت 9 در حالت باتری کار می کند
در حالت Performance، بازی قابلیتهای دستگاه کاربر را شناسایی میکند و پیکربندی بهینه منابع را برای حداکثر غوطهوری بدون ایجاد دریچه گاز دستگاه اعمال میکند. در حالی که دستگاه ها را می توان به طور موقت تقویت کرد تا حداکثر عملکرد را ارائه دهند، اما از نظر انرژی کارآمد نیست و گرمای زیادی تولید می کند. ورود کم به اوج عملکرد، مانند هنگام بارگذاری، و سپس کاهش به عملکرد پایدار، استفاده از انرژی را بهینه میکند و به طور کلی تجربه کاربری بهتری را ارائه میدهد.
آسفالت 9 در حال اجرا در حالت PERFORMANCE
نتایج
Gameloft انتظار داشت بازیکنان از عملکرد و گیم پلی بهبود یافته لذت ببرند، اما این حالت باتری بود که بیشترین تأثیر را داشت. در برخی از دستگاه های تلفن همراه، حالت باتری مصرف انرژی آسفالت 9 را تا 70 درصد کاهش داد و در نتیجه به طور متوسط 35 درصد زمان پخش طولانی تر و دستگاه خنک تری در دست پخش کننده داشت.
الکساندر دومیترو، مدیر عملیات انتشاراتی در Gameloft، گفت: «مدیریت این پیادهسازی آسان بود و تیم از داشتن یک راه ساده برای ارائه جدیدترین و بهترین تجربه عملکرد به کاربران خود قدردانی کرد.»
Gameloft بر اساس موفقیت خود قصد دارد تا Game Mode API را بر روی سایر بازی های موجود در مجموعه خود پیاده سازی کند. بازیکنان عناوین چند نفره و تیراندازی رقابتی از عملکرد اضافی قدردانی میکنند، در حالی که ساخت سیمها میتواند از حالت صرفهجویی در باتری بهرهمند شود.
با حالت بازی شروع کنید
با استفاده از Game Mode API کاربران خود را درک کنید و در مورد عملکرد و وفاداری، تصمیمات بهتری بگیرید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و 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)."]]