- reworked the FPS display to use ZDoom's fstat class to get rid of the microscopic font it used.

- changed time display for rendering to exclude VSync and playsim times to get more meaningful information.
This commit is contained in:
Christoph Oelckers 2019-11-10 11:42:25 +01:00
parent cae710bd59
commit a1a9770b44
18 changed files with 75 additions and 169 deletions

View file

@ -80,6 +80,15 @@ void FStat::ToggleStat (const char *name)
Printf ("Unknown stat: %s\n", name);
}
void FStat::EnableStat(const char* name, bool on)
{
FStat* stat = FindStat(name);
if (stat)
stat->m_Active = on;
else
Printf("Unknown stat: %s\n", name);
}
void FStat::ToggleStat ()
{
m_Active = !m_Active;