diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index c7a2445d83..f92ce8a337 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -1663,14 +1663,16 @@ EXPORT_C GSReplay(char* lpszCmdLine, int renderer) break; } } + + // Ensure the rendering is complete to measure correctly the time. + glFinish(); + 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); stats.push_back((float)(end - start)); - - sleep(1); finished--; total_frame_nb += frame_number; }