diff --git a/EndlessClient/GameExecution/EndlessGame.cs b/EndlessClient/GameExecution/EndlessGame.cs index 2ea1d1ee3..4723e1bd1 100644 --- a/EndlessClient/GameExecution/EndlessGame.cs +++ b/EndlessClient/GameExecution/EndlessGame.cs @@ -38,7 +38,6 @@ public class EndlessGame : Game, IEndlessGame private readonly ILoggerProvider _loggerProvider; private readonly IChatBubbleTextureProvider _chatBubbleTextureProvider; private readonly IShaderRepository _shaderRepository; - private readonly ICharacterInfoPanelFactory _characterInfoPanelFactory; private readonly IConfigurationProvider _configurationProvider; private readonly IMfxPlayer _mfxPlayer; private readonly IXnaControlSoundMapper _soundMapper; @@ -63,7 +62,6 @@ public EndlessGame(IClientWindowSizeProvider windowSizeProvider, ILoggerProvider loggerProvider, IChatBubbleTextureProvider chatBubbleTextureProvider, IShaderRepository shaderRepository, - ICharacterInfoPanelFactory characterInfoPanelFactory, IConfigurationProvider configurationProvider, IMfxPlayer mfxPlayer, IXnaControlSoundMapper soundMapper) @@ -78,7 +76,6 @@ public EndlessGame(IClientWindowSizeProvider windowSizeProvider, _loggerProvider = loggerProvider; _chatBubbleTextureProvider = chatBubbleTextureProvider; _shaderRepository = shaderRepository; - _characterInfoPanelFactory = characterInfoPanelFactory; _configurationProvider = configurationProvider; _mfxPlayer = mfxPlayer; _soundMapper = soundMapper; @@ -116,8 +113,10 @@ protected override void Initialize() AttemptToLoadPubFiles(); IsMouseVisible = true; + IsFixedTimeStep = false; _previousKeyState = Keyboard.GetState(); + _graphicsDeviceManager.SynchronizeWithVerticalRetrace = false; _graphicsDeviceManager.IsFullScreen = false; _graphicsDeviceManager.PreferredBackBufferWidth = _windowSizeProvider.Width; _graphicsDeviceManager.PreferredBackBufferHeight = _windowSizeProvider.Height; @@ -154,14 +153,6 @@ protected override void LoadContent() _shaderRepository.Shaders[ShaderRepository.HairClip] = new Effect(GraphicsDevice, shaderBytes); } - // for some reason initializing these and then killing them speeds up transition from Login -> LoggedIn state - // TODO: figure out why this happens???? - foreach (var panel in _characterInfoPanelFactory.CreatePanels(Enumerable.Repeat(Character.Default, 3))) - { - panel.Initialize(); - panel.Dispose(); - } - SetUpInitialControlSet(); if (_configurationProvider.MusicEnabled)