Lines Matching refs:opts
81 void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options& opts, in outputBenchmarkReport() argument
85 report.repetitions = opts.repeatCount; in outputBenchmarkReport()
88 report.iterations = static_cast<int64_t>(opts.frameCount); in outputBenchmarkReport()
91 report.counters["FPS"] = opts.frameCount / durationInS; in outputBenchmarkReport()
92 if (opts.reportGpuMemoryUsage) { in outputBenchmarkReport()
101 static void doRun(const TestScene::Info& info, const TestScene::Options& opts, int repetitionIndex, in doRun() argument
103 if (opts.reportGpuMemoryUsage) { in doRun()
108 testContext.setRenderOffscreen(opts.renderOffscreen); in doRun()
116 std::unique_ptr<TestScene> scene(info.createScene(opts)); in doRun()
135 if (opts.renderOffscreen) { in doRun()
153 ModifiedMovingAverage<double> avgMs(opts.reportFrametimeWeight); in doRun()
156 for (int i = 0; i < opts.frameCount; i++) { in doRun()
169 if (opts.reportFrametimeWeight) { in doRun()
182 outputBenchmarkReport(info, opts, (end - start) / (double)s2ns(1), repetitionIndex, in doRun()
189 void run(const TestScene::Info& info, const TestScene::Options& opts, in run() argument
192 for (int i = 0; i < opts.repeatCount; i++) { in run()
193 doRun(info, opts, i, reporter ? &results : nullptr); in run()
212 if (opts.reportGpuMemoryUsageVerbose) { in run()