Kakao Games ثبات FPS را از طریق سازگاری اندروید به 96% افزایش داد
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پس زمینه
Ares: Rise of Guardians یک MMORPG علمی تخیلی از موبایل به کامپیوتر است که توسط Second Dive، یک استودیوی بازی سازی مستقر در کره که به دلیل تخصص خود در توسعه سری های اکشن RPG شناخته شده است، توسعه یافته است. این بازی توسط Kakao Games منتشر شده است.
آرس که در دنیایی وسیع با پسزمینهای دقیق و آیندهنگر میگذرد، مملو از گیمپلی هیجانانگیز و شخصیتهایی است که به زیبایی رندر شدهاند که شامل رزمندگانی است که لباسهای جنگی به تن دارند. با این حال، به دلیل این گرافیک های بسیار دقیق، دستگاه های برخی از کاربران برای مدیریت گیم پلی با مشکل مواجه شدند.
کاری که آنها انجام دادند
برای برخی از کاربران، دستگاه آنها تنها پس از چند دقیقه گیم پلی بیش از حد گرم می شود و به حالت دریچه گاز می رسد. در این حالت فرکانس CPU و فرکانس GPU کاهش می یابد و عملکرد بازی را تحت تاثیر قرار می دهد و باعث افت فریم در ثانیه (FPS) می شود. با این حال، به محض اینکه FPS کاهش یافته وضعیت حرارتی را بهبود بخشید، FPS دوباره افزایش یافت و چرخه تکرار شد. نوسان FPS باعث شد تا بازی احساس لکنت داشته باشد.
سازگاری اندروید مجموعهای از ابزارها و کتابخانهها است که بازی را قادر میسازد تا به تحلیل عملکرد، شرایط حرارتی و کاربر در زمان واقعی پاسخ دهد. Android Adaptability شامل APIهای حرارتی Android Dynamic Performance Framework (ADPF) است که اطلاعاتی در مورد وضعیت حرارتی یک دستگاه ارائه میکند و API PerformanceHintManager که به اندروید کمک میکند نقطه عملکرد بهینه CPU و قرارگیری هسته را انتخاب کند. هر دو API با بسته Unity Adaptive Performance کار می کنند تا به شما کمک کنند بازی های خود را بهینه کنید.
Android Adaptability و Unity Adaptive Performance با هم کار می کنند تا تنظیمات گرافیکی برنامه یا بازی شما را مطابق با قابلیت های دستگاه کاربر تنظیم کنند. نتیجه: بهبود عملکرد، کاهش انقباض حرارتی، مصرف انرژی کمتر و عمر باتری بیشتر.
آنچه به دست آوردند
پس از ادغام عملکرد تطبیقی، Ares بهتر میتواند وضعیت حرارتی خود را مدیریت کند و در نتیجه گاز کمتری ایجاد میکند. کاربران می توانند از نرخ فریم بالاتر لذت ببرند و ثبات FPS از 75٪ به 96٪ افزایش یافته است.
در نمودارهای زیر خط آبی نشان دهنده سطح هشدار حرارتی است. خط پایین (0.7) نشان می دهد که هیچ هشداری وجود ندارد، خط وسط (0.8) نزدیک است و خط بالایی (0.9) در حال کاهش است.
همانطور که نمودار اول نشان می دهد، قبل از اینکه Ares سازگاری اندروید را پیاده سازی کند، پس از حدود 16 دقیقه گیم پلی، throttling اتفاق افتاد. نمودار دوم نتیجه ادغام سازگاری با اندروید را نشان می دهد: تا حدود 22 دقیقه گلوگاه ایجاد نمی شود.
کاکائو گیمز همچنین میخواست گرمایش دستگاه را کاهش دهد، که میدانستند با تنظیمات کیفیت گرافیکی بالا امکانپذیر نیست. بهترین کار این است که با افزایش دمای دستگاه به تدریج وفاداری گرافیکی را کاهش دهید تا یک نرخ فریم و تعادل حرارتی ثابت حفظ شود. بنابراین Kakao Games یک توالی تغییر شش مرحلهای با سازگاری Android ایجاد کرد که FPS پایدار و دمای دستگاه را پایینتر میداد.
تغییرات خودکار در وفاداری در تنظیمات کیفیت گرافیک درون بازی (رزولوشن، بافت، سایه، افکت و غیره) در منوی تنظیمات منعکس می شود. از آنجا که برخی از کاربران بالاترین کیفیت گرافیکی را میخواهند حتی اگر دستگاهشان نتواند عملکرد را در آن سطح حفظ کند، Kakao Games به کاربران این امکان را داد که Unity Adaptive Performance را به صورت دستی غیرفعال کنند.
با Android Adaptability شروع کنید
Android Adaptability و Unity Adaptive Performance پس از Android 11 (سطح API 30)، حرارتی و Android 12 (سطح API 31)، API راهنمای عملکرد، اکنون در دسترس همه توسعه دهندگان بازی اندروید با استفاده از ارائه دهنده Unity Android در اکثر دستگاه های Android است. می توانید از ارائه دهنده اندروید از نسخه Adaptive Performance 5.0.0 استفاده کنید. API های حرارتی با عملکرد تطبیقی ادغام شده اند تا به شما کمک کنند اطلاعات حرارتی دستگاه را بازیابی کنید، و API راهنمایی عملکرد هر Update() به طور خودکار و بدون هیچ کار اضافی نامیده می شود.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2023-10-10 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2023-10-10 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Kakao Games increased FPS stability to 96% through Android Adaptability\n\nBackground\n----------\n\n[Ares: Rise of Guardians](https://play.google.com/store/apps/details?id=com.kakaogames.ares&hl=en_US)\nis a mobile-to-PC sci-fi MMORPG developed by Second Dive, a game studio based in\nKorea known for its expertise in developing action RPG series. The game is\npublished by [Kakao Games](https://play.google.com/store/apps/dev?id=6236189329207394247&hl=en_US).\n\nSet in a vast universe with a detailed, futuristic background, Ares is full of\nexciting gameplay and beautifully rendered characters involving combatants\nwearing battle suits. However, because of these richly detailed graphics, some\nusers' devices struggled to handle the gameplay.\n\nWhat they did\n-------------\n\nFor some users, their device would overheat after just a few minutes of gameplay\nand enter a thermally throttled state. In this state, the CPU frequency and GPU\nfrequency are reduced, affecting the game's performance and causing the frames\nper second (FPS) to drop. However, as soon as the decreased FPS improved the\nthermal situation, the FPS increased again, and the cycle repeated. The FPS\nfluctuation caused the game to feel stuttery.\n\nTo solve this problem, Kakao Games used\n[Android Adaptability](/games/optimize/adpf) and\n[Unity Adaptive Performance](https://docs.unity3d.com/Packages/com.unity.adaptiveperformance@5.0/manual/index.html)\nto improve the performance and thermal management of their game.\n\nAndroid Adaptability is a set of tools and libraries\nthat enable a game to analyze and respond to changing performance, thermal, and\nuser situations in real time. Android Adaptability includes the Android Dynamic\nPerformance Framework (ADPF) thermal APIs, which provide information about the\nthermal state of a device, and the [`PerformanceHintManager`](/reference/android/os/PerformanceHintManager)\nAPI, which helps Android choose the optimal CPU operating point and core\nplacement. Both APIs work with the Unity Adaptive Performance package to help\nyou optimize your games.\n\nAndroid Adaptability and Unity Adaptive Performance work together to adjust the\ngraphics settings of your app or game to match the capabilities of the user's\ndevice. The result: improved performance, reduced thermal throttling, lower\npower consumption, and longer battery life.\nYour browser doesn't support the video tag.\n\nWhat they achieved\n------------------\n\nAfter integrating adaptive performance, Ares is better able to manage its\nthermal situation, resulting in less throttling. Users are\nable to enjoy a higher frame rate, and FPS stability has increased from 75%\nto 96%.\n\nIn the charts below, the blue line indicates the thermal warning level. The\nbottom line (0.7) indicates no warning, the midline (0.8) is throttling\nimminent, and the upper line (0.9) is throttling.\n\nAs the first chart shows,\nbefore Ares implemented Android Adaptability, throttling happened after about\n16 minutes of gameplay. The second chart shows the result of Android\nAdaptability integration: throttling doesn't occur until around 22 minutes.\n\nKakao Games also wanted to reduce device heating, which they knew wasn't\npossible with a continuously high graphic quality setting. The best practice is\nto gradually lower the graphical fidelity as device temperature increases to\nmaintain a constant framerate and thermal equilibrium. So Kakao Games created a\nsix-step change sequence with Android Adaptability that enabled stable FPS and\nlower device temperatures.\n\nAutomatic changes in fidelity are reflected in the\nin-game graphic quality settings (resolution, texture, shadow, effect, etc.) in\nthe settings menu. Because some users want the highest graphic quality even if\ntheir device can't sustain performance at that level, Kakao Games gave users the\noption to manually disable Unity Adaptive Performance.\n\nGet started with Android Adaptability\n-------------------------------------\n\nAndroid Adaptability and Unity Adaptive Performance are now available to all\nAndroid game developers using the Unity Android provider on most Android devices\nafter Android 11 (API level 30), thermal, and Android 12 (API level 31),\nperformance hint API. You can use the\n[Android provider](https://docs.unity3d.com/Packages/com.unity.adaptiveperformance.google.android@1.0/manual/index.html)\nfrom the Adaptive Performance 5.0.0 version. The thermal APIs are integrated\nwith Adaptive Performance to help you retrieve device thermal information,\nand the performance hint API is called every `Update()` automatically without\nany additional work.\n\nAdditional resources\n--------------------\n\nLearn how [Android Adaptability](/games/optimize/adpf) and\n[Unity Adaptive Performance](https://docs.unity3d.com/Packages/com.unity.adaptiveperformance@5.0/manual/index.html)\ncan help you stabilize your game's FPS and reduce thermal throttling."]]