/// <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() { resizer = new WindowResizer(graphics, this); // Render target is used to separate internal resolution from display resolution. renderTarget = new RenderTarget2D(GraphicsDevice, InternalResolution.Width, InternalResolution.Height); ActionMapper.Initialize(); // Output some diagnostics before returning. Console.WriteLine("BackbufferWidth: {0}", graphics.PreferredBackBufferWidth); Console.WriteLine("BackbufferHeight: {0}", graphics.PreferredBackBufferHeight); Console.WriteLine("IsFixedTimeStep: {0}", IsFixedTimeStep); base.Initialize(); }