summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Kevin DuBois <kevindubois@google.com> 2020-07-10 14:29:36 -0700
committer Kevin DuBois <kevindubois@google.com> 2020-07-22 20:50:34 +0000
commitbc7ddfff65c97c46817374e804900347c2471b9c (patch)
treebf43bfed271b82957e1eddc7641838b8e2d2c9e3 /vulkan/libvulkan/api.cpp
parent56892df0aa2edcfd2f0a00a1aad402a615cdebc5 (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 Merged-In: Ic3190822e38c5a24d3445ea89ef6d7e34a590077 (cherry picked from commit b818bfaf7b5bb2f62ed8af0a3ede300a8eb65e2f)
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions