docs.unity.cn
    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 ITheramlStatus 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
      • There is also a Android.AndroidGame.GameMode property available in the Unity API.
    • GameState API
      • On Adaptive Performance initialization, the Android SetGameState API is triggered
      • There is also a Android.AndroidGame.SetGameState method available in the Unity API to make additional calls to the Android GameManager.

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

    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Friday, March 31, 2023
    Terms of use