These guides describe development tools, APIs, and tasks for optimizing Android games. These tools and APIs are designed find performance bottlenecks and determine device limitations while maximizing performance at sustainable levels for games and graphic-intensive apps.
Best practices for Android game optimization: Optimal system trace settings and performance improvements for Android games.
Reduce game size: Reduce the size of your game by adjusting assets, project structure, and game delivery.
Game optimization tools and libraries
Android GPU Inspector (AGI): An Andrdoid system profiling tool that provides advanced GPU tracing and analysis for games and graphic intensive apps.
Android Performance Tuner (APT): Find performance issues related to quality settings, scenes, load times, and device models in your game.
Android Dynamic Performance Framework (ADPF): Optimize games based on the dynamic thermal, CPU, and GPU management features of each device.
Memory Advice API: Provide memory use estimates and threshold notifications to your game so it can stay at optimal levels that avoid LMKs.
GameMode: Optimize gameplay by prioritizing characteristics, such as performance or battery life based on users settings or game specific configurations.
Android app optimization tools
Perfetto: Collects system-wide performance information and displays it in a web-based UI.
Systrace: Records system activity and generates reports that help identify performance issues.
CPU Profiler: Inspect your app's CPU usage and thread activity, either in real time or from recorded traces.
bugreport: View device logs, stack traces, and other diagnostic information to help you find and fix bugs in your app.
GAPID: Capture and analyze graphics API calls made by your app.
The game design guidelines provide best practices that can further optimize Android games. These include device availability recommendations, game asset and graphics API optimizations. Although they are best used when designing your game, you can improve performance at any time by implementing these guidelines.
For more information, see the design overview.