diff options
| author | 2020-07-10 14:29:36 -0700 | |
|---|---|---|
| committer | 2020-07-13 18:33:09 +0000 | |
| commit | b818bfaf7b5bb2f62ed8af0a3ede300a8eb65e2f (patch) | |
| tree | 66e35869221fee7d2ba1a45243051ddb64f5870e /vulkan/libvulkan/api.cpp | |
| parent | 7a1a78e7b549c6c745f130aa1630929a33db441a (diff) | |
SF: hwvsync on for more samples on recalibration
Decrease the amount of time that the VSyncPredictor is using the
idealPeriod (ie, the hwc-reported period) by leaving hwVsync on until
there's enough info (4 additional pulses) to infer device's
measured/actual period.
This will benefit frames that come intermittently, as the vsync's
cumulative error over the larger time gap will be smaller, giving the
timer a better chance of landing closer to the vsync signal when those
one-off frames come in.
Test: 3 new unit tests, 2 other tests modified in substance.
Test: dogfooding
Test: uibench
Fixes: 159896971
Change-Id: Ic3190822e38c5a24d3445ea89ef6d7e34a590077
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions