Skip to content

Instantly share code, notes, and snippets.

@nishio
Forked from GRGSIBERIA/siv3d_bench.cpp
Last active December 2, 2016 14:15
Show Gist options
  • Save nishio/95a8ca3bae4c22ec4eb8637a80e4d486 to your computer and use it in GitHub Desktop.
Save nishio/95a8ca3bae4c22ec4eb8637a80e4d486 to your computer and use it in GitHub Desktop.
std::vector<Texture> ts;
void benchmark() {
Stopwatch stopwatch;
Profiler::EnableWarning(false);
stopwatch.start();
for (int i = 0; i < 100; i++) {
const String filename = Format(L"C:/Users/nishio/Desktop/images/pages_0", i + 100, L".png");
ts.emplace_back(filename);
}
Println(stopwatch.ms()); // 10837ms
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment