VR: Make VSync computation more robust to slow devices

Desktop / Chromium - Michael Thiessen [chromium.org] - 13 July 2017 21:01 EDT

Previously we were trying to compute the actual refresh rate of the display, but this isn't possible when the VSync loop runs slow. Instead, compute the UI thread framerate, which is equivalent to the actual refresh rate on fast devices, but handles slowdowns appropriately.

Bug: 741090 Change-Id: I35befba210af35f898f500ed70c8ce3b1e31a346 Reviewed-on: https://chromium-review.googlesource.com/568458

17fab5f VR: Make VSync computation more robust to slow devices.
.../chrome/browser/vr_shell/VrShellDelegate.java | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)

Upstream: git.chromium.org


  • Share