Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23802] Android N: Expose Sustained Performance API for Nexus devices

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-11-15T23:31:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.0.0
ComponentsAndroid
Labelsandroid, android-7, nexus
ReporterHans Knöchel
AssigneeGary Mathews
Created2016-08-22T21:25:33.000+0000
Updated2017-11-16T00:47:45.000+0000

Description

{quote} Performance can fluctuate dramatically for long-running apps, because the system throttles system-on-chip engines as device components reach their temperature limits. This fluctuation presents a moving target for app developers creating high-performance, long-running apps. To address these limitations, Android 7.0 includes support for sustained performance mode, enabling OEMs to provide hints about device-performance capabilities for long-running apps. App developers can use these hints to tune apps for a predictable, consistent level of device performance over long periods of time. App developers can try out this new API in Android 7.0 on Nexus 6P devices only. To use this feature, set the sustained performance window flag for the window you want to run in sustained performance mode. Set this flag using the Window.setSustainedPerformanceMode() method. The system automatically disables this mode when the window is no longer in focus. {quote}

Comments

  1. Hans Knöchel 2016-12-11

    [~fmerzadyan] Is this something we can control using a new property (e.g. sustainedPerformanceMode) with true/false values. Native API:
       public static void setSustainedPerformanceMode (Activity activity, boolean enabled)
       
    If too much work, we would pull it out of 6.1.0.
  2. Frankie Merzadyan 2016-12-21

    master: https://github.com/appcelerator/titanium_mobile/pull/8709
  3. Gary Mathews 2017-11-02

    master: https://github.com/appcelerator/titanium_mobile/pull/9582
  4. Lokesh Choudhary 2017-11-15

    FR Passed. Waiting for merge to get enabled.
  5. Lokesh Choudhary 2017-11-15

    PR Merged.
  6. Lokesh Choudhary 2017-11-16

    Verified the fix in SDK 7.0.0.v20171115153702. Closing.

JSON Source