mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Add very specific debug logging for FPS measurements.
This commit is contained in:
parent
0c460c524d
commit
cb1c3b5943
6
driver.c
6
driver.c
@ -503,6 +503,12 @@ static void compute_monitor_fps_statistics(void)
|
|||||||
for (unsigned i = 1; i < samples; i++)
|
for (unsigned i = 1; i < samples; i++)
|
||||||
accum += g_extern.measure_data.frame_time_samples[i];
|
accum += g_extern.measure_data.frame_time_samples[i];
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
for (unsigned i = 1; i < samples; i++)
|
||||||
|
RARCH_LOG("Interval #%u: %d usec / frame.\n",
|
||||||
|
i, (int)g_extern.measure_data.frame_time_samples[i]);
|
||||||
|
#endif
|
||||||
|
|
||||||
rarch_time_t avg = accum / (samples - 1);
|
rarch_time_t avg = accum / (samples - 1);
|
||||||
rarch_time_t accum_var = 0;
|
rarch_time_t accum_var = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user