DescriptionAdd 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. #
Messages
Total messages: 35 (22 generated)
|