Created
December 2, 2016 13:45
-
-
Save nishio/73f134742bea9e9530913f17a5dd8bf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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