This commit is contained in:
Martin Pulec
2020-06-10 11:52:04 +02:00
parent 5b0a9c6a57
commit 91a2769f3e

View File

@@ -421,9 +421,9 @@ static void print_fps(steady_clock::time_point *t0, int *frames, const string &n
double seconds = duration_cast<duration<double>>(t1 - *t0).count();
if (seconds >= 5.0) {
double fps = *frames / seconds;
LOG(LOG_LEVEL_INFO) << "[" << name << "] " << frames << " frames in " << seconds << " seconds = " << BOLD(fps << " FPS\n");
LOG(LOG_LEVEL_INFO) << "[" << name << "] " << *frames << " frames in " << seconds << " seconds = " << BOLD(fps << " FPS\n");
*t0 = t1;
frames = 0;
*frames = 0;
}
}