NEW STATE Mobile Android GPU ইন্সপেক্টরের সাথে GPU ব্যবহার 22% হ্রাস করে৷
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পটভূমি
NEW STATE Mobile হল Krafton-এর একটি ব্যাটেল রয়্যাল গেম যা 2021 সালের নভেম্বরে বিশ্বব্যাপী লঞ্চ হয়েছে এবং লঞ্চের প্রথম মাসে 45M+ ডাউনলোড হয়েছে। KRAFTON, Inc. হল স্বাধীন গেম ডেভেলপমেন্ট স্টুডিওগুলির একটি সমষ্টি যা বিশ্বজুড়ে গেমারদের জন্য উদ্ভাবনী এবং আকর্ষক বিনোদনের অভিজ্ঞতা তৈরি করতে একত্রিত হয়। কোম্পানিটি PUBG স্টুডিও, ব্লুহোল স্টুডিও, স্ট্রাইকিং ডিসট্যান্স স্টুডিও, রাইজিংউইংস, ড্রিমোশন এবং অজানা ওয়ার্ল্ডস নিয়ে গঠিত, প্রত্যেকের নিজস্ব অনন্য দক্ষতা রয়েছে। NEW STATE মোবাইলটি অবাস্তব ইঞ্জিন 4 দিয়ে তৈরি করা হয়েছে, এবং তাদের স্বতন্ত্র গেমিং বৈশিষ্ট্যগুলি থেকে উচ্চ GPU ব্যবহারের কারণে তাপ এবং ব্যাটারি খরচ কমানোর জন্য বিভিন্ন প্রচেষ্টা করা হয়েছে৷
গেমাররা দীর্ঘ পরিসরের যুদ্ধ খেলতে পারে, তাই গেম ইঞ্জিনকে অনেক দূর থেকে দৃশ্য রেন্ডার করতে সক্ষম হতে হবে। এছাড়াও, যুদ্ধের ময়দানে অসংখ্য গাছপালা উপস্থিত থাকে, যার ফলে এই গাছপালা ওভারড্রা করা হয় কর্মক্ষমতা হ্রাসের উপর যথেষ্ট প্রভাব ফেলে। এটি গেমের জিপিইউ ব্যবহার অপ্টিমাইজ করতে এবং বাধাগুলি দূর করতে সহায়তা করার জন্য দলটিকে Android GPU ইন্সপেক্টর (AGI) এর দিকে নিয়ে যায়৷

চিত্র 1 : নিউ স্টেট মোবাইল থেকে স্ক্রিনশট
তারা কি করেছিল
NEW STATE Mobile AGI ব্যবহার করে প্রচুর GPU কাউন্টার তথ্য অ্যাক্সেস করতে এবং সেই অনুযায়ী তাদের GPU ব্যবহার অপ্টিমাইজ করে৷ তারা AGI দ্বারা প্রদত্ত GPU কার্যকলাপ প্রোফাইলিং ডেটার সাহায্যে অপ্রয়োজনীয় রেন্ডার পাস সনাক্ত করেছে। কোন বিভাগগুলি GPU ব্যবহার এবং মেমরি ব্যান্ডউইথ গ্রহণ করছে তা শনাক্ত করার পরে, তারা সঠিক দিকে যাচ্ছে কিনা তা পরীক্ষা করতে জিপিইউ কাউন্টার এবং জিপিইউ অ্যাক্টিভিটি ব্যবহার করে অপ্টিমাইজেশানের অগ্রগতি পরীক্ষা করতে থাকে।

চিত্র 2 : নিউ স্টেট মোবাইল থেকে স্ক্রিনশট
AGI ব্যবহার করে গেমের পারফরম্যান্স সম্পর্কে তারা শিখেছে এমন কয়েকটি জিনিস এখানে রয়েছে:
বেস পাস অপ্টিমাইজেশান : ডেপথ প্রিপাস, যা একটি প্রযুক্তি যা Early-z-এর ব্যবহার বাড়ায়, ফ্র্যাগমেন্ট শেডিংয়ের ব্যবহার কমাতে সাহায্য করেছে। ডেপথ প্রিপাস বিশেষভাবে LOD0 এর জন্য ব্যবহার করা হয়েছিল যা স্ক্রীনের বেশিরভাগ জায়গা নেয়, অতিরিক্ত ড্র কল থেকে যে বোঝা আসতে পারে তা কমিয়ে দেয়। এছাড়াও, 32-বিট সিনকালার ফর্ম্যাট ব্যবহার করে পুরো রেন্ডার পাসের কর্মক্ষমতা বৃদ্ধি করতে পারে। UnrealEngine4 এর ডিফল্ট SceneColor ফরম্যাট হল FloatRGBA, যা 64-বিট। একটি 32-বিট বিন্যাস ব্যবহার করা হলে, মেমরি ব্যান্ডউইথ অর্ধেক হ্রাস করা যেতে পারে।
প্রভাব পরিমাপ করা হয়েছে : গভীরতা প্রিপাস প্রয়োগ করার পরে, GPU ব্যবহার 7.5% কমে গেছে। গভীরতার প্রিপাসের কারণে, আরও টুকরো আর্লি-জেড হতে পারে। ফ্র্যাগমেন্ট শেডিংয়ের জন্য প্রয়োজনীয় সময়ের হার 2% কমেছে। 32-বিট সিনকালার ফরম্যাটের মাধ্যমে, GPU ব্যবহার 5.3% কমে গেছে। Shaders Busy 2% কমেছে, এবং সিস্টেম মেমরি থেকে মোট GPU পড়া 330 MB/s কমেছে। সিস্টেম মেমরিতে GPU যে পরিমাণ লিখেছে তা 78 MB/s দ্বারা হ্রাস পেয়েছে এবং টেক্সচার মেমরি রিডও 43 MB/s দ্বারা হ্রাস পেয়েছে৷
শ্যাডো পাস অপ্টিমাইজেশান : যখন জালগুলিকে শ্যাডো কাস্টার হিসাবে ব্যবহার করা হয়, তখন উচ্চ বহুভুজ LOD ব্যবহার করলে মানের মধ্যে সত্যিই কোনও পার্থক্য হয় না। কম বহুভুজ LOD ব্যবহার করা পছন্দ যা ত্রিভুজের সংখ্যা কমাতে সাহায্য করে। অবাস্তব ইঞ্জিন 4-এ, কম বহুভুজ LOD কনসোল কমান্ড 'ForceLODShadow' এর মাধ্যমে ব্যবহার করা যেতে পারে।
প্রভাব পরিমাপ করা হয়েছে : ছায়ার জন্য ব্যবহৃত ত্রিভুজের সংখ্যা প্রায় 120,000 কমেছে। AGI-তে GPU কাউন্টার ডেটা দেখায় যে GPU ব্যবহার প্রায় 2% কমেছে, সিস্টেম মেমরি থেকে পড়া GPU মেমরির পরিমাণ 130MB/s কমেছে, এবং GPU থেকে সিস্টেম মেমরিতে লেখা পরিমাণ প্রায় 23MB কমেছে।
অটো-ইনস্ট্যান্সিং : অটো-ইনস্ট্যান্সিং, যা শ্যাডো পাস এবং বেস পাস অপ্টিমাইজেশন উভয়ের জন্যই প্রয়োগ করা যেতে পারে, আপনাকে রানটাইমে একই রেন্ডার কমান্ডগুলিকে একত্রিত করতে দেয় এবং তারপরে একবারে রেন্ডার করা হয়। এটি NEWSTATE মোবাইলকে কার্যক্ষমতা হারানো ছাড়াই পৃথক বস্তুতে বিশ্বব্যাপী আলোকসজ্জা প্রয়োগ করার অনুমতি দেয়। অটো-ইনস্ট্যান্সিং হল UnrealEngine4 দ্বারা প্রদত্ত একটি মৌলিক বৈশিষ্ট্য।
প্রভাব পরিমাপ করা হয়েছে : ড্র কলগুলি 500 দ্বারা হ্রাস পেয়েছে৷ এটি ড্র কলগুলির প্রায় 48% হ্রাস করেছে৷ GPU ব্যবহার প্রায় 3.5% কমেছে। এই পরিমাপ OpenGL ব্যবহার করে নেওয়া হয়েছিল।

চিত্র 3 : অভ্যন্তরীণ ডেটা GPU ব্যবহার হ্রাস দেখাচ্ছে
ফলাফল
AGI ব্যবহার করে, NEW STATE Mobile তার GPU ব্যবহার 22% কমিয়েছে। ডেপথ প্রিপাস এবং শ্যাডো পাস অপ্টিমাইজেশান থেকে, GPU ব্যবহার যথাক্রমে 19% এবং 3% কমেছে। কল আঁকা এবং সিস্টেম মেমরি থেকে GPU দ্বারা পড়া এবং লেখা মোট মেমরিও যথেষ্ট পরিমাণে হ্রাস পেয়েছে।
এবার শুরু করা যাক
অ্যান্ড্রয়েড জিপিইউ ইন্সপেক্টর (এজিআই) এর সাথে অপ্টিমাইজ করার জন্য পারফরম্যান্স সমস্যা এবং ক্ষেত্রগুলি সনাক্ত করে অ্যান্ড্রয়েড ডিভাইসে আপনার গেমের প্রভাব কীভাবে বিশ্লেষণ করবেন তা শিখুন।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2022-02-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","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"]],["2022-02-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# NEW STATE Mobile reduces GPU usage by 22% with Android GPU Inspector\n\nBackground\n----------\n\n[NEW STATE Mobile](https://play.google.com/store/apps/details?id=com.pubg.newstate) is a battle royale game from Krafton that launched Nov 2021 worldwide, and reached 45M+ downloads in the first month of launch. KRAFTON, Inc. is a collective of independent game development studios brought together to create innovative and engaging entertainment experiences for gamers across the world. The company consists of PUBG Studios, Bluehole Studio, Striking Distance Studios, RisingWings, Dreamotion, and Unknown Worlds, each with its own unique expertise. NEW STATE Mobile was created with Unreal Engine 4, and various attempts have been made to reduce heat and battery consumption caused by high GPU usage from their distinctive gaming features.\n\nGamers can play long range battles, so the game engine needs to be able to render scenes from quite a distance. Also, numerous vegetations are present in the battleground, leading the overdraw of these vegetations to have a substantial impact on decreasing performance. This led the team to [Android GPU Inspector](http://developer.android.com/agi) (AGI) to help optimize the game's GPU usage and eliminate bottlenecks.\n\n**Figure 1**: Screenshot from NEW STATE Mobile\n\nWhat they did\n-------------\n\nNEW STATE Mobile used AGI to access loads of GPU counter information and optimize their GPU usage accordingly. They identified unnecessary render passes with the help of the GPU activity profiling data provided by AGI. After identifying which segments were taking up GPU usage and memory bandwidth, they continued to check the optimization progress using the GPU Counter and GPU activity back and forth to check if they were headed in the right direction.\n\n**Figure 2**: Screenshot from NEW STATE Mobile\n\nHere are a few things they learned about the game's performance using AGI:\n\n- **Base pass optimization**: Depth prepass, which is a technology that increases usage of Early-z, helped decrease the use of fragment shading. Depth prepass was specifically used for LOD0 which takes up most of the screen space, minimizing the burden that can come from additional draw calls. Also, using the 32-bit scenecolor format can increase the performance of the entire render pass. Default SceneColor format of UnrealEngine4 is FloatRGBA, which is 64-bit. If a 32-bit format is used, memory bandwidth can be reduced by half.\n\n- **Impact measured**: After applying depth prepass, GPU utilization dropped by 7.5%. Due to the depth prepass, more Fragments could be Early-Z. The rate of time required for fragment shading has decreased by 2%. Through the 32-bit scenecolor format, GPU utilization was reduced by 5.3%. Shaders Busy decreased by 2%, and total GPU read from system memory decreased 330 MB/s. The amount the GPU writes to system memory was reduced by 78 MB/s and Texture memory read was also reduced by 43 MB/s.\n\n- **Shadow pass optimization**: When meshes are used as shadow casters, using high polygon LOD does not really make a difference in quality. It is preferred to use low polygon LOD which helps reduce the number of triangles. In Unreal Engine 4, low polygon LOD can be used via the console command 'ForceLODShadow'.\n\n- **Impact measured**: The number of triangles used for shadows decreased by about 120,000. The GPU counter data in AGI showed that GPU usage decreased about 2%, the amount of the GPU memory read from the system memory decreased 130MB/s, and the amount written from the GPU to the system memory decreased about 23MBs.\n\n- **Auto-instancing**: Auto-instancing, which can be applied for both shadow pass and base pass optimization, allows you to merge the same render commands at runtime and then be rendered all at once. This allowed NEWSTATE mobile to apply global illumination to individual objects without losing performance. Auto-instancing is a basic feature provided by UnrealEngine4.\n\n- **Impact measured**: Draw calls were reduced by 500. It reduced about 48% of the draw calls. GPU utilization decreased about 3.5%. These measurements were taken using OpenGL.\n\n**Figure 3**: Internal data showing GPU usage reduction\n\nResults\n-------\n\nBy using AGI, NEW STATE Mobile reduced its GPU usage by 22%. From depth prepass and shadow pass optimization, GPU usage was down by 19% and 3% respectively. Draw calls and the total memory read and written by GPU from system memory was also substantially reduced.\n\nGet started\n-----------\n\nLearn how to analyze the impact of your game on Android devices by identifying performance issues and areas to optimize with the [Android GPU Inspector](https://developer.android.com/agi) (AGI)."]]