mirror of https://github.com/PCSX2/pcsx2.git
gsdx-debug: infinite replay for value > 90
Allow to use Nvidia debugger & give time to see the glitches
This commit is contained in:
parent
9f291a6666
commit
42c08e6123
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue