public Game() { DeProfiler.Run(); FrameRateCounter frameRate = new FrameRateCounter(this); frameRate.DrawOrder = 1; Components.Add(frameRate); }
public Game1() { DeProfiler.Run(); graphics = new GraphicsDeviceManager(this); preferredBackBufferHeight = graphics.PreferredBackBufferHeight; preferredBackBufferWidth = graphics.PreferredBackBufferWidth; //enter stealth mode at start //graphics.PreferredBackBufferHeight = 100; //graphics.PreferredBackBufferWidth = 160; FrameRateCounter frameRate = new FrameRateCounter(this); frameRate.DrawOrder = 1; Components.Add(frameRate); Content.RootDirectory = "Content"; graphics.SynchronizeWithVerticalRetrace = true; // press f3 to set it to false at runtime showDebugKeysHelp(); }