gsdx-debug: infinite replay for value > 90

Allow to use Nvidia debugger & give time to see the glitches
This commit is contained in:
Gregory Hainaut 2015-08-19 19:20:47 +02:00
parent 9f291a6666
commit 42c08e6123
1 changed files with 10 additions and 6 deletions

View File

@ -1670,6 +1670,9 @@ EXPORT_C GSReplay(char* lpszCmdLine, int renderer)
// Ensure the rendering is complete to measure correctly the time.
glFinish();
if (finished > 90) {
sleep(1);
} else {
unsigned long end = timeGetTime();
fprintf(stderr, "The %ld frames of the scene was render on %ldms\n", frame_number, end - start);
fprintf(stderr, "A means of %fms by frame\n", (float)(end - start)/(float)frame_number);
@ -1679,6 +1682,7 @@ EXPORT_C GSReplay(char* lpszCmdLine, int renderer)
finished--;
total_frame_nb += frame_number;
}
}
if (theApp.GetConfig("linux_replay", 1) > 1) {
// Print some nice stats