[TIMOB-23802] Android N: Expose Sustained Performance API for Nexus devices
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-15T23:31:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.0 |
Components | Android |
Labels | android, android-7, nexus |
Reporter | Hans Knöchel |
Assignee | Gary Mathews |
Created | 2016-08-22T21:25:33.000+0000 |
Updated | 2017-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}
[~fmerzadyan] Is this something we can control using a new property (e.g.
sustainedPerformanceMode
) withtrue
/false
values. Native API:If too much work, we would pull it out of 6.1.0.
master: https://github.com/appcelerator/titanium_mobile/pull/8709
master: https://github.com/appcelerator/titanium_mobile/pull/9582
FR Passed. Waiting for merge to get enabled.
PR Merged.
Verified the fix in SDK 7.0.0.v20171115153702. Closing.