diff --git a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs index 3b878f699..c3a9f5230 100644 --- a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs @@ -384,7 +384,11 @@ namespace Barotrauma { GameMain.DebugDraw = !GameMain.DebugDraw; NewMessage("Debug draw mode " + (GameMain.DebugDraw ? "enabled" : "disabled"), Color.White); - + })); + commands.Add(new Command("fpscounter", "fpscounter: Toggle the FPS counter.", (string[] args) => + { + GameMain.ShowFPS = !GameMain.ShowFPS; + NewMessage("FPS counter " + (GameMain.DebugDraw ? "enabled" : "disabled"), Color.White); })); commands.Add(new Command("togglehud|hud", "togglehud/hud: Toggle the character HUD (inventories, icons, buttons, etc) on/off.", (string[] args) => diff --git a/Barotrauma/BarotraumaClient/Source/GameMain.cs b/Barotrauma/BarotraumaClient/Source/GameMain.cs index cc3a5e69f..1a175363b 100644 --- a/Barotrauma/BarotraumaClient/Source/GameMain.cs +++ b/Barotrauma/BarotraumaClient/Source/GameMain.cs @@ -16,7 +16,7 @@ namespace Barotrauma { class GameMain : Game { - public static bool ShowFPS = true; + public static bool ShowFPS = false; public static bool DebugDraw; public static FrameCounter FrameCounter;