Reworked benchmark code, store per frame times (instead of iteration totals)

Refs #269
This commit is contained in:
saschawillems 2017-08-28 20:48:52 +02:00
parent b42d0edb3b
commit 107db7d244
2 changed files with 49 additions and 27 deletions

View file

@ -672,7 +672,7 @@ VulkanExampleBase::VulkanExampleBase(bool enableValidation)
if (args.size() > i + 2) {
char* endptr;
uint32_t iterations = strtol(args[i + 2], &endptr, 10);
if (endptr != args[i + 2]) { benchmark.iterations = iterations; };
if (endptr != args[i + 2]) { benchmark.iterationCount = iterations; };
}
}
}