diff options
author | Brian Osman <brianosman@google.com> | 2017-10-10 15:41:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-10 20:05:13 +0000 |
commit | 01776980154512ad855708c6f1c4f75bda0fb0ce (patch) | |
tree | 4f5a3f38f28c092f2d4a58c25a4dfb394276add9 /bench/nanobench.cpp | |
parent | e07622386b10c158cb0cc653ace264e24c5702af (diff) |
Warmup for one extra frame in nanobench
On ANGLE, at least, this frame gives us much more consistent results.
Bug: skia:
Change-Id: Ifdecc8451ef51490c08057645214738180b1a366
Reviewed-on: https://skia-review.googlesource.com/57884
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r-- | bench/nanobench.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 33d433d9be..5a976e6640 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -397,7 +397,7 @@ static int setup_gpu_bench(Target* target, Benchmark* bench, int maxGpuFrameLag) // Pretty much the same deal as the calibration: do some warmup to make // sure we're timing steady-state pipelined frames. - for (int i = 0; i < maxGpuFrameLag - 1; i++) { + for (int i = 0; i < maxGpuFrameLag; i++) { time(loops, bench, target); } |