Android Dynamic Performance Framework で温度と CPU のパフォーマンスを最適化する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドでは、Android Dynamic Performance Framework(ADPF)を使用して、Android の動的な温度と CPU 管理機能に基づいてゲームを最適化する方法について説明します。ここでは主にゲームに焦点を当てますが、この機能をパフォーマンス重視の他のアプリで使用することもできます。
ADPF は、ゲームや高いパフォーマンスを必要とするアプリが Android デバイスの電力システムや温度システムをより直接的に操作できるようにする API のセットです。これらの API を使用することで、Android システムでの動的な動作をモニタリングし、デバイスを過熱状態にしない持続可能なレベルでゲームのパフォーマンスを最適化することができます。
モバイル SoC や Android のパフォーマンス動作は、デスクトップやコンソールより動的です。このような動作には、熱状態管理、CPU クロックの変更、CPU コアタイプの変更などがあります。これと、ますます多様化している SoC のコア トポロジを組み合わせると、デバイスのパフォーマンスに悪影響を及ぼさずにゲームがこの動作を活用できるようにする場合に、課題が生じます。パフォーマンスを予測しやすくするために、ADPF はこの情報の一部を提供します。
ADPF の主な機能は次のとおりです。
- Thermal API: デバイスの温度状態をモニタリングして、アプリケーションがワークロードを持続不能になる前に事前に調整できるようにします。
- CPU Performance Hint API: Android がワークロードに適したパフォーマンス設定(CPU 動作ポイントやコアなど)を選択できるように、パフォーマンスのヒントを提供します。
- Game Mode API と Game State API: ユーザーの設定とゲーム固有の構成に基づいて、パフォーマンスやバッテリー駆動時間の特性を優先することで、ゲームプレイの最適化を有効にします。
- 固定パフォーマンス モード: 動的 CPU クロックによって変更されない測定値を取得するには、ベンチマーク中にデバイスで固定パフォーマンス モードを有効にします。
- Power Efficiency Mode: パフォーマンスよりも電力効率を優先するように Performance Hint Session のスレッドを安全にスケジュールできることをセッションに伝えます。(Android 15 で利用可能)
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Optimize thermal and CPU performance with the Android Dynamic Performance Framework\n\nThis guide describes how to use the Android Dynamic Performance Framework (ADPF)\nto optimize games based on the dynamic thermal and CPU management features on\nAndroid. The focus is on games, but you can also use the features for other\nperformance-intensive apps.\n\nADPF is a set of APIs that allow games and performance-intensive apps to\ninteract more directly with power and thermal systems of Android devices. With\nthese APIs, you can monitor the dynamic behavior on Android systems and optimize\ngame performance at a sustainable level that doesn't overheat devices.\n\nMobile SoCs and Android have more dynamic performance behaviors than desktops\nand consoles. These behaviors include thermal state management, varying CPU\nclocks, and varying CPU core types. This combined with the increasingly diverse\ncore topology of SoCs creates challenges when trying to ensure that your game\ncan take advantage of this behavior without negatively impacting device\nperformance. ADPF provides some of this information in order to make performance\nmore predictable.\n\nHere are the main ADPF features:\n\n- **Thermal API**: Monitor the thermal state of a device so that the application can proactively adjust workload before it becomes unsustainable.\n- **CPU Performance Hint API**: Provide performance hints that let Android choose the right performance settings (for example, CPU operating point or core) for the workload.\n- **Game Mode API \\& Game State API**: Enable game play optimization by prioritizing performance or battery life characteristics, based on user's settings and game specific configurations.\n- **Fixed Performance Mode**: Enable fixed-performance mode on a device during benchmarking to get measurements that aren't altered by dynamic CPU clocking.\n- **Power Efficiency Mode** : Tells the session that the threads in Performance Hint Session can be safely scheduled to prefer power efficiency over performance. ([Available in Android 15](/reference/android/os/PerformanceHintManager.Session#setPreferPowerEfficiency(boolean)))"]]