mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-23 04:01:05 +00:00
Merge pull request #38 from DanielGibson/classic-showfps
Add classic com_showFPS mode
This commit is contained in:
commit
5a9e718cb0
2 changed files with 10 additions and 1 deletions
|
@ -74,7 +74,9 @@ idCVar com_allowConsole( "com_allowConsole", "1", CVAR_BOOL | CVAR_SYSTEM | CVAR
|
|||
|
||||
idCVar com_developer( "developer", "0", CVAR_BOOL | CVAR_SYSTEM | CVAR_NOCHEAT, "developer mode" );
|
||||
idCVar com_speeds( "com_speeds", "0", CVAR_BOOL | CVAR_SYSTEM | CVAR_NOCHEAT, "show engine timings" );
|
||||
idCVar com_showFPS( "com_showFPS", "0", CVAR_BOOL | CVAR_SYSTEM | CVAR_ARCHIVE | CVAR_NOCHEAT, "show frames rendered per second" );
|
||||
// DG: support "com_showFPS 2" for fps-only view like in classic doom3 => make it CVAR_INTEGER
|
||||
idCVar com_showFPS( "com_showFPS", "0", CVAR_INTEGER | CVAR_SYSTEM | CVAR_ARCHIVE | CVAR_NOCHEAT, "show frames rendered per second. 0: off 1: default bfg values, 2: only show FPS (classic view)" );
|
||||
// DG end
|
||||
idCVar com_showMemoryUsage( "com_showMemoryUsage", "0", CVAR_BOOL | CVAR_SYSTEM | CVAR_NOCHEAT, "show total and per frame memory usage" );
|
||||
idCVar com_updateLoadSize( "com_updateLoadSize", "0", CVAR_BOOL | CVAR_SYSTEM | CVAR_NOCHEAT, "update the load size after loading a map" );
|
||||
|
||||
|
|
|
@ -240,6 +240,13 @@ float idConsoleLocal::DrawFPS( float y )
|
|||
|
||||
y += BIGCHAR_HEIGHT + 4;
|
||||
|
||||
// DG: "com_showFPS 2" means: show FPS only, like in classic doom3
|
||||
if( com_showFPS.GetInteger() == 2 )
|
||||
{
|
||||
return y;
|
||||
}
|
||||
// DG end
|
||||
|
||||
// print the resolution scale so we can tell when we are at reduced resolution
|
||||
idStr resolutionText;
|
||||
resolutionScale.GetConsoleText( resolutionText );
|
||||
|
|
Loading…
Reference in a new issue