From a2a604be473c829763854ffb34f7978bc0358afb Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sat, 13 Mar 2021 14:12:35 +0100 Subject: [PATCH] Fix benchmark options Fixes #815 --- base/vulkanexamplebase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index 7951a657..622a1667 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -748,8 +748,8 @@ VulkanExampleBase::VulkanExampleBase(bool enableValidation) } if (commandLineParser.isSet("benchmarkresultfile")) { benchmark.filename = commandLineParser.getValueAsString("benchmarkresultfile", benchmark.filename); - } - if (commandLineParser.isSet("benchmarkframetimes")) { + } + if (commandLineParser.isSet("benchmarkresultframes")) { benchmark.outputFrameTimes = true; } @@ -2725,7 +2725,7 @@ CommandLineParser::CommandLineParser() add("benchmarkwarmup", { "-bw", "--benchwarmup" }, 1, "Set warmup time for benchmark mode in seconds"); add("benchmarkruntime", { "-br", "--benchruntime" }, 1, "Set duration time for benchmark mode in seconds"); add("benchmarkresultfile", { "-bf", "--benchfilename" }, 1, "Set file name for benchmark results"); - add("benchmarkresultframes", { "-bt", "--benchframetimes" }, 1, "Save frame times to benchmark results file"); + add("benchmarkresultframes", { "-bt", "--benchframetimes" }, 0, "Save frame times to benchmark results file"); } void CommandLineParser::add(std::string name, std::vector commands, bool hasValue, std::string help)