// Called once when the game starts. protected override void Initialize() { graphicsManager.PreferredBackBufferWidth = 1280; graphicsManager.PreferredBackBufferHeight = 720; graphicsManager.ApplyChanges(); //graphicsManager.SynchronizeWithVerticalRetrace = false; //IsFixedTimeStep = false; GlobalServices.Initialize(gameName, companyName, this, graphicsManager); base.Initialize(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { /* * graphics.PreferredBackBufferWidth = GraphicsDevice.DisplayMode.Width; * graphics.PreferredBackBufferHeight = GraphicsDevice.DisplayMode.Height; * graphics.IsFullScreen = true; */ graphicsManager.PreferredBackBufferWidth = 1280; graphicsManager.PreferredBackBufferHeight = 720; graphicsManager.ApplyChanges(); GlobalServices.Initialize(gameName, companyName, this, graphicsManager); base.Initialize(); }