Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 2901213002: Add SlidingAverage to FPSMeter, use for WebVR prediction time (Closed)

Created:
3 years, 7 months ago by klausw
Modified:
3 years, 7 months ago
Reviewers:
bajones, cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SlidingAverage to FPSMeter, use for WebVR prediction time Refactor FPSMeter to extract the "sliding window sum" code into a separate class, use it in FPSMeter, and separately use it to implement a SlidingAverage class. This revealed a pre-existing bug where current_index_ was not being initialized, leading to wrong FPS calculations. Use SlidingAverage to calculate WebVR Javascript and rendering times, and use those to calculate the prediction time offset for GVR poses instead of hardcoding 50ms for this. BUG=723962 Review-Url: https://codereview.chromium.org/2901213002 Cr-Commit-Position: refs/heads/master@{#474549} Committed: https://chromium.googlesource.com/chromium/src/+/0d1a6048d093aeefb6eec350fcef6352326f5029

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 10

Patch Set 3 : Review comments, add TRACE_COUNTER output including FPS #

Patch Set 4 : Rebase #

Patch Set 5 : Fix "Complex destructor has an inline body" for = default. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -34 lines) Patch
M chrome/browser/android/vr_shell/fps_meter.h View 1 2 3 4 2 chunks +36 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/fps_meter.cc View 1 2 3 4 3 chunks +46 lines, -21 lines 0 comments Download
M chrome/browser/android/vr_shell/fps_meter_unittest.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 4 chunks +28 lines, -5 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.h View 1 chunk +6 lines, -0 lines 0 comments Download
M device/vr/android/gvr/gvr_delegate.cc View 3 chunks +20 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
klausw
3 years, 7 months ago (2017-05-24 00:32:02 UTC) #2
cjgrant
Klaus, a general question as well: For this application, is the sample history actually necessary? ...
3 years, 7 months ago (2017-05-24 13:37:30 UTC) #11
klausw
> Klaus, a general question as well: For this application, is the sample history actually ...
3 years, 7 months ago (2017-05-24 16:32:23 UTC) #12
cjgrant
lgtm from a VrShell/code perspective.
3 years, 7 months ago (2017-05-24 17:17:14 UTC) #15
bajones
LGTM. Definitely be nice to get away from a static prediction value!
3 years, 7 months ago (2017-05-24 17:21:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901213002/40001
3 years, 7 months ago (2017-05-24 17:30:23 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/276172)
3 years, 7 months ago (2017-05-24 19:11:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901213002/80001
3 years, 7 months ago (2017-05-24 19:25:35 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/302240)
3 years, 7 months ago (2017-05-24 22:39:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901213002/80001
3 years, 7 months ago (2017-05-24 22:44:16 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/302487)
3 years, 7 months ago (2017-05-25 02:38:00 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901213002/80001
3 years, 7 months ago (2017-05-25 02:49:08 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 04:33:28 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0d1a6048d093aeefb6eec350fcef...

Powered by Google App Engine
This is Rietveld 408576698