Skip to content

Instantly share code, notes, and snippets.

@nishio
Created December 2, 2016 13:45
Show Gist options
  • Save nishio/73f134742bea9e9530913f17a5dd8bf7 to your computer and use it in GitHub Desktop.
Save nishio/73f134742bea9e9530913f17a5dd8bf7 to your computer and use it in GitHub Desktop.
Texture pageTextures[100];
void benchmark() {
Stopwatch stopwatch;
Profiler::EnableWarning(false);
stopwatch.start();
wchar filename[128];
for (int i = 0; i < 100; i++) {
swprintf_s(filename, 128, L"C:/Users/nishio/Desktop/images/pages_%04d.png", i + 1);
pageTextures[i] = Texture(filename);
}
Println(stopwatch.ms()); // 11471ms
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment