public TMBAW_Game() { // Important services that need to be instanstiated before other things. _graphics = new GraphicsDeviceManager(this); Content = new ContentManager(Services, "Content"); GameData = new GameDataManager(); //Window.IsBorderless = true; DataFolder.Initialize(); SettingsFile settings = DataFolder.GetSettingsFile(); UserName = SteamFriends.GetPersonaName(); SteamID = SteamUser.GetSteamID(); #if DEBUG SteamUserStats.ResetAllStats(true); #endif MediaPlayer.Volume = settings.MusicVolume; MaxVolume = settings.SoundVolume; // Change game settings here. _graphics.SynchronizeWithVerticalRetrace = true; _graphics.PreferMultiSampling = false; IsFixedTimeStep = true; _graphics.ApplyChanges(); Thread.CurrentThread.Priority = ThreadPriority.Highest; GraphicsRenderer.OnResolutionChanged += OnResolutionChanged; }