Fix benchmark options

Fixes #815
This commit is contained in:
Sascha Willems 2021-03-13 14:12:35 +01:00
parent 70fc3c4675
commit a2a604be47

View file

@ -749,7 +749,7 @@ 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<std::string> commands, bool hasValue, std::string help)