diff options
| author | 2022-06-02 21:19:42 -0700 | |
|---|---|---|
| committer | 2022-06-07 07:39:19 -0700 | |
| commit | 89434a2523f06f7e2bb2bcc1497aebb52567b66d (patch) | |
| tree | 9a9e0c35b9c41a25ac65062c340efd6c169182e8 /libs/androidfw/ResourceTimer.cpp | |
| 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
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions