From 01776980154512ad855708c6f1c4f75bda0fb0ce Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Tue, 10 Oct 2017 15:41:03 -0400 Subject: 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 Commit-Queue: Brian Osman --- bench/nanobench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/nanobench.cpp') 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); } -- cgit v1.2.3