public WaterGame() { _graphics = new GraphicsDeviceManager(this); _graphics.PreferredBackBufferWidth = 1600; _graphics.PreferredBackBufferHeight = 900; _graphics.SynchronizeWithVerticalRetrace = false; Window.AllowUserResizing = true; IsFixedTimeStep = false; //TargetElapsedTime = TimeSpan.FromMilliseconds(8.33); _graphics.ApplyChanges(); Screen = new(); Screen.RelativePosition = GraphicsDevice.Viewport.Bounds; Window.ClientSizeChanged += Window_ClientSizeChanged; gameObjectManager = new(GraphicsDevice); Screen.ChangeScreen(new DefaultScreen()); gameObjectManager.AddObject(Screen); Screen.UpdateScreenSize(new(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height)); Content.RootDirectory = "Content"; IsMouseVisible = true; #if DEBUG Screen.AddScreen(new DebugOverlay(gameObjectManager, Screen, Window)); #endif }