commit | 187d2d812711188df2fc649e276f7cb6d0fb81e4 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Wed Jul 10 16:18:48 2019 -0700 |
committer | Ady Abraham <adyabr@google.com> | Wed Jul 10 18:25:59 2019 -0700 |
tree | 950bab5651ca4c787d1eeb902f463c6303a65cac | |
parent | 11b6a70c6f6780f2f878ed3e103b5ffbb0b8fc26 [diff] |
SurfaceFlinger: store fps instead of duration in LayerInfo To get a better average of the content fps, we switch to store the momentarily fps rate instead of the refresh duration. For example: Frame#0 at 0ms Frame#1 at 100ms Frame#2 at 111ms Frame#3 at 122ms Average based on duration is AVERAGE(100, 11, 11) = 40.6ms (25fps) Average based on fps is AVERAGE(10, 90, 90) = 63fps Test: app launch Bug: 136558136 Change-Id: Icab848dd1f312498590f9735b8881ecdf0d24113