Allow setting benchmarking warmup time to 0 seconds to skip warmup phase (#1112)
Sometimes it's desired to render exactly N (--c N) frames.
This commit is contained in:
parent
5b792b056d
commit
720afde027
2 changed files with 2 additions and 2 deletions
|
|
@ -849,7 +849,7 @@ VulkanExampleBase::VulkanExampleBase()
|
|||
vks::tools::errorModeSilent = true;
|
||||
}
|
||||
if (commandLineParser.isSet("benchmarkwarmup")) {
|
||||
benchmark.warmup = commandLineParser.getValueAsInt("benchmarkwarmup", benchmark.warmup);
|
||||
benchmark.warmup = commandLineParser.getValueAsInt("benchmarkwarmup", 0);
|
||||
}
|
||||
if (commandLineParser.isSet("benchmarkruntime")) {
|
||||
benchmark.duration = commandLineParser.getValueAsInt("benchmarkruntime", benchmark.duration);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue