diff --git a/neo/framework/Common.cpp b/neo/framework/Common.cpp index 21ab1960..cae1294c 100644 --- a/neo/framework/Common.cpp +++ b/neo/framework/Common.cpp @@ -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" ); diff --git a/neo/framework/Console.cpp b/neo/framework/Console.cpp index 2cec293a..ede705c5 100644 --- a/neo/framework/Console.cpp +++ b/neo/framework/Console.cpp @@ -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 );