protected override void Initialize() { Window.Title = $"Alex - {VersionUtils.GetVersion()} - {RenderingEngine}"; // InitCamera(); this.Window.TextInput += Window_TextInput; if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { var currentAdapter = GraphicsAdapter.Adapters.FirstOrDefault(x => x == GraphicsDevice.Adapter); if (currentAdapter != null) { if (currentAdapter.IsProfileSupported(GraphicsProfile.HiDef)) { DeviceManager.GraphicsProfile = GraphicsProfile.HiDef; } } } base.InactiveSleepTime = TimeSpan.Zero; GraphicsDevice.PresentationParameters.MultiSampleCount = 8; DeviceManager.ApplyChanges(); base.Initialize(); RichPresenceProvider.Initialize(); }
protected override void Initialize() { Window.Title = "Alex - " + Version; // InitCamera(); this.Window.TextInput += Window_TextInput; if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { var currentAdapter = GraphicsAdapter.Adapters.FirstOrDefault(x => x == GraphicsDevice.Adapter); if (currentAdapter != null) { if (currentAdapter.IsProfileSupported(GraphicsProfile.HiDef)) { DeviceManager.GraphicsProfile = GraphicsProfile.HiDef; } } } GraphicsDevice.PresentationParameters.MultiSampleCount = 8; DeviceManager.ApplyChanges(); base.Initialize(); RichPresenceProvider.Initialize(); }