commit | 89434a2523f06f7e2bb2bcc1497aebb52567b66d | [log] [tgz] |
---|---|---|
author | Dake Gu <[email protected]> | Thu Jun 02 21:19:42 2022 -0700 |
committer | Dake Gu <[email protected]> | Tue Jun 07 07:39:19 2022 -0700 |
tree | 9a9e0c35b9c41a25ac65062c340efd6c169182e8 | |
parent | 3a9b4c8b112c3fbd59bca17228ecc772e0879cb3 [diff] |
Recompute the mNextFrameStartUnstuffed on every frame At runtime, the intended_vsync difference is not constant value of 16.66ms. If JankTracker repeatedly adds 16.66ms to mNextFrameStartUnstuffed, it might be difted away after the tiny differences being accumulated over many frames. This Cl re-computes mNextFrameStartUnstuffed based on intended_vsync for each triple buffering frame. Test: existing JankTrackerTests Change-Id: Ifa0b456be61905648f87327bddc3328e9abfef0a