Android game optimization

Stay organized with collections Save and categorize content based on your preferences.

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.

Optimization tasks

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.

  • Meminfo: Records a snapshot of your app's memory allocation. You can also use this feature through the meminfo dumpsys command.

  • 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.

Design optimizations

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.