docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Adaptive Performance Android provider

    The Adaptive Performance Android provider extends Adaptive Performance to Android devices. To do this, it sends device-specific information from Android devices to the Adaptive Performance package. This enables you to retrieve data about the thermal state and performance mode of Android devices.

    This package integrates with the following Android frameworks and APIs:

    • Android Dynamic Performance Framework (ADPF) (more info)
      • The following APIs are integrated into Adaptive Performance IThermalStatus to retrieve thermal information about the device.
        • getThermalHeadroom
        • getCurrentThermalStatus
        • ThermalStatusChangedListener
      • The following APIs are integrated into the game loop to retrieve and send performance related details to Android.
        • createHintSession
        • getPreferredUpdateRateNanos
        • reportActualWorkDuration
    • GameMode API (more info)
      • The Android GetGameMode API is integrated into Adaptive Performance IPerformanceModeStatus
      • IAdaptivePerformanceSettings.automaticGameMode property controls whether to adjust the target frame rate according to the current device GameMode setting. You can change this property using the Adaptive Performance Android provider setting Auto Game Mode . When the Auto Game Mode is turned on, the following adjustments occur:
        • Battery saver mode lowers the target frame rate to 30 fps.
        • Performance mode raises the target frame rate to the highest supported by the display.
        • Standard mode sets the application target frame rate to -1, which instructs player to use the default frame rate. The default frame rate on mobile platforms is 30 fps.
      • Unity API also includes Android.AndroidGame.GameMode property.
    • GameState API (more info)
      • Unity API includes Android.AndroidGame.SetGameState method to make manual calls to the Android GameManager.

    For information on what's new in the latest version of Adaptive Performance Android, see the Changelog.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)