การเพิ่มประสิทธิภาพเกม Android
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เครื่องมือและ API ในการเพิ่มประสิทธิภาพ Android ออกแบบมาเพื่อค้นหาคอขวดด้านประสิทธิภาพ
และพิจารณาข้อจำกัดของอุปกรณ์ พร้อมทั้งเพิ่มประสิทธิภาพในระดับที่ยั่งยืน
สำหรับเกมและแอปที่ใช้กราฟิกหนักๆ
Android GPU Inspector (AGI): เครื่องมือสร้างโปรไฟล์ระบบ Android ที่
ให้การติดตามและการวิเคราะห์ GPU ขั้นสูงสำหรับเกมและแอปที่ใช้กราฟิกหนัก
Android Performance Tuner (APT): ค้นหาปัญหาด้านประสิทธิภาพที่เกี่ยวข้องกับการตั้งค่าคุณภาพ ฉาก เวลาในการโหลด และรุ่นอุปกรณ์ในเกม
เฟรมเวิร์กประสิทธิภาพแบบไดนามิกของ Android (ADPF):
เพิ่มประสิทธิภาพเกมตามฟีเจอร์การจัดการความร้อน, CPU และ GPU แบบไดนามิก
ของอุปกรณ์แต่ละเครื่อง
Memory Advice API: ให้ค่าประมาณการใช้หน่วยความจำและการแจ้งเตือนเกณฑ์แก่เกมเพื่อให้เกมคงระดับที่เหมาะสมที่สุดซึ่งหลีกเลี่ยง LMK ได้
Game Mode API: เพิ่มประสิทธิภาพการเล่นเกมโดยจัดลำดับความสำคัญของลักษณะต่างๆ เช่น ประสิทธิภาพหรืออายุการใช้งานแบตเตอรี่ตามการตั้งค่าของผู้ใช้หรือการกำหนดค่าเฉพาะของเกม
Perfetto: รวบรวมข้อมูลประสิทธิภาพทั่วทั้งระบบ
และแสดงใน UI บนเว็บ
Systrace: บันทึกกิจกรรมของระบบและสร้าง
รายงานที่ช่วยระบุปัญหาด้านประสิทธิภาพ)
โปรไฟล์เลอร์ CPU: ตรวจสอบการใช้งาน CPU
และกิจกรรมของเธรดในแอปแบบเรียลไทม์หรือจากร่องรอยที่บันทึกไว้
Meminfo
คลาส: บันทึกภาพรวมการจัดสรรหน่วยความจำของแอป นอกจากนี้ คุณยังใช้ฟีเจอร์นี้ผ่านคำสั่ง
meminfo dumpsys
ได้ด้วย
รายงานข้อบกพร่อง: ดูบันทึกของอุปกรณ์ สแต็กเทรซ และ
ข้อมูลการวินิจฉัยอื่นๆ เพื่อช่วยคุณค้นหาและแก้ไขข้อบกพร่องในแอป
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Android game optimization\n\nAndroid optimization tools and APIs are designed to find performance bottlenecks\nand determine device limitations while maximizing performance at sustainable\nlevels for games and graphic-intensive apps.\n\n- [Android GPU Inspector (AGI)](/agi): An Android system profiling tool that\n provides advanced GPU tracing and analysis for games and graphic intensive\n apps.\n\n- [Android Performance Tuner (APT)](/games/sdk/performance-tuner): Find\n performance issues related to quality settings, scenes, load times, and\n device models in your game.\n\n- [Android Dynamic Performance Framework (ADPF)](/games/optimize/adpf):\n Optimize games based on the dynamic thermal, CPU, and GPU management features\n of each device.\n\n- [Memory Advice API](/games/sdk/memory-advice/overview): Provide memory use\n estimates and threshold notifications to your game so it can stay at optimal\n levels that avoid LMKs.\n\n- [Game Mode API](/games/gamemode): Optimize gameplay by prioritizing\n characteristics, such as performance or battery life based on users settings\n or game specific configurations.\n\n- [Perfetto](https://perfetto.dev/docs/): Collects system-wide\n performance information and displays it in a web-based UI.\n\n- [Systrace](/topic/performance/tracing): Records system activity and generates\n reports that help identify performance issues.)\n\n- [CPU Profiler](/studio/profile): Inspect your app's CPU\n usage and thread activity, either in real time or from recorded traces.\n\n- [`Meminfo` class](/reference/android/os/Debug.MemoryInfo): Records a\n snapshot of your app's memory allocation. You can also use this feature through the\n [`meminfo dumpsys`](/studio/command-line/dumpsys#meminfo) command.\n\n- [Bug report](/studio/debug/bug-report): View device logs, stack traces, and\n other diagnostic information to help you find and fix bugs in your app."]]