gsdx-linux: remove an old delay that pollute my benchmark mode

Also add a glFinish to ensure rendering is done
This commit is contained in:
Gregory Hainaut 2015-08-07 16:03:49 +02:00
parent d826d925db
commit b3919fde95
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}