improve the timedemo fps output a little

This commit is contained in:
Bill Currie 2003-08-13 16:08:06 +00:00
parent e36ce15b5c
commit 34d2e0163c
2 changed files with 4 additions and 4 deletions

View file

@ -373,8 +373,8 @@ CL_FinishTimeDemo (void)
time = realtime - cls.td_starttime;
if (!time)
time = 1;
Con_Printf ("%i frames %5.2f seconds %5.2f fps\n", frames, time,
frames / time);
Con_Printf ("%i frame%s %.4g seconds %.4g fps\n", frames,
frames == 1 ? "" : "s", time, frames / time);
if (--timedemo_count > 0)
CL_StartTimeDemo ();
}

View file

@ -975,8 +975,8 @@ CL_FinishTimeDemo (void)
time = Sys_DoubleTime () - cls.td_starttime;
if (!time)
time = 1;
Con_Printf ("%i frames %5.2f seconds %5.2f fps\n", frames, time,
frames / time);
Con_Printf ("%i frame%s %.4g seconds %.4g fps\n", frames,
frames == 1 ? "" : "s", time, frames / time);
CL_TimeFrames_DumpLog ();
demo_timeframes_isactive = 0;