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
|
|
@ -24,7 +24,7 @@ namespace vks
|
|||
bool active = false;
|
||||
bool outputFrameTimes = false;
|
||||
int outputFrames = -1; // -1 means no frames limit
|
||||
uint32_t warmup = 1;
|
||||
uint32_t warmup = 1; // Default to 1 sec of warm-up
|
||||
uint32_t duration = 10;
|
||||
std::vector<double> frameTimes;
|
||||
std::string filename = "";
|
||||
|
|
|
|||
|
|
@ -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