フレーム ペーシング ライブラリを統合する代わりに、Android フレームレート API を使用してディスプレイのリフレッシュ レートを直接調整します。
グラフィックに Vulkan API を使用する
Android は、古い OpenGL ES API と新しい Vulkan API の 2 つのグラフィック API をサポートしています。Vulkan は現在、Android のメインのグラフィック API であり、OpenGL ES よりも効率的です。Vulkan のメリットと使用方法については、グラフィックに Vulkan を使用するをご覧ください。
デバイスの熱状態に対応する
デバイスの CPU と GPU の使用率が高いと、熱が発生します。デバイスの温度が上昇すると、電力効率が低下します。デバイスが熱くなりすぎると、CPU と GPU の速度が低下し、消費電力が削減されてデバイスが冷却されます。この動作はサーマル スロットリングと呼ばれ、ゲームのパフォーマンスとバッテリーの消耗率に影響します。Android Thermal API を使用してデバイスの熱状態をモニタリングし、ゲームのワークロードを調整して熱スロットリングを防ぎます。
デバイスのゲームモードをクエリする
ゲームモードは、パフォーマンスとバッテリー駆動時間のどちらを優先するか、または中間のデフォルトを選択するかをユーザーが指定できる機能です。ゲームが可変パフォーマンス構成をサポートしている場合は、Game Mode API を使用してこの設定を確認し、それに応じてゲーム設定を変更します。
[[["わかりやすい","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"]],["最終更新日 2025-07-26 UTC。"],[],[],null,["# Optimize power efficiency\n\nAndroid games are played primarily on battery-powered devices such as phones or\ntablets. Optimize your game's power efficiency to help users play your game\nlonger and give them confidence to start a game session even when their device\nisn't fully charged.\n\nUse an optimal display refresh rate\n-----------------------------------\n\nDisplay refresh rate is the speed at which the display panel of a device can\nchange to show new information. Traditionally, handheld devices used a refresh\nrate of 60Hz, updating the display contents sixty times a second. Modern devices\noften feature displays with higher refresh rates capable of updating at 90Hz or\n120Hz. Higher refresh rates result in smoother user experiences for actions such\nas scrolling, but increase the power consumption of the display panel.\n\nGames commonly have a target frame rate of 30 or 60 frames per second. If the\ndisplay refresh rate is higher than the target frame rate of the game, there is\nno benefit from the higher refresh rate, only increased power consumption. On\nhigh-refresh-rate devices, adjust the display refresh rate to match your game\ntarget frame rate as closely as possible.\n\n### Integrate or enable the Swappy frame pacing library\n\nThe Android Game Development Kit (AGDK) includes a frame pacing library known as\nSwappy. Swappy optimizes the device's display refresh rate to match your game\nframe rate as closely as possible. If you are using a custom game engine, review\nthe [Frame Pacing Library](/games/sdk/frame-pacing) guide to learn how to integrate the library into\nyour engine.\n\nSwappy is already integrated into the Unreal engine ([Frame Pacing for Mobile\nDevices](https://dev.epicgames.com/documentation/en-us/unreal-engine/frame-pacing-for-mobile-devices-in-unreal-engine)) and the Unity engine\n([PlayerSettings.Android.optimizedFramePacing](https://docs.unity3d.com/6000.0/Documentation/ScriptReference/PlayerSettings.Android-optimizedFramePacing.html))\nand optimizes the display refresh rate if enabled in your game project.\n\n### Call the Android frame rate API\n\nAs an alternative to integrating the frame pacing library, use the [Android\nframe rate API](/media/optimize/performance/frame-rate) to directly adjust the display refresh rate.\n\nUse the Vulkan API for graphics\n-------------------------------\n\nAndroid supports two graphics APIs: the older OpenGL ES API and the newer Vulkan\nAPI. Vulkan is now the primary graphics API on Android and is more efficient\nthan OpenGL ES. For more information on Vulkan's benefits and how to use it, see\n[Use Vulkan for graphics](/games/develop/vulkan/overview).\n\nRespond to device thermal conditions\n------------------------------------\n\nHigh utilization of the device's CPU and GPU generates heat. Power efficiency\ndrops as the device heats up. If a device gets too hot, it downclocks the\nspeed of the CPU and GPU to reduce power consumption and allow the device to\ncool. This behavior, referred to as thermal throttling, affects the performance\nof your game and its rate of battery drain. Use the [Android Thermal API](/games/optimize/adpf/thermal) to\nmonitor the thermal state of the device to adjust your game's workload to\nprevent thermal throttling.\n\nQuery the device Game Mode\n--------------------------\n\nGame Mode is a feature that lets the user specify a preference of whether to\ntrade off performance against battery life, battery life against performance, or\nselect a neutral default. If your game supports variable performance\nconfigurations, use the [Game Mode API](/games/optimize/adpf/gamemode/gamemode-api) to check for this preference and\nmodify your game settings accordingly.\n\nAdditional resources\n--------------------\n\n[Android Studio power profiler](/studio/profile/power-profiler)\n\n[Unity power efficiency demo sample (GitHub)](https://github.com/android/games-samples/tree/main/unity/power_efficiency_demo)"]]