diff --git a/Dalamud/Game/Internal/DXGI/SwapChainVtableResolver.cs b/Dalamud/Game/Internal/DXGI/SwapChainVtableResolver.cs index 32e297337..78abae0f0 100644 --- a/Dalamud/Game/Internal/DXGI/SwapChainVtableResolver.cs +++ b/Dalamud/Game/Internal/DXGI/SwapChainVtableResolver.cs @@ -1,16 +1,10 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Runtime.InteropServices; using Dalamud.Game.Internal.DXGI.Definitions; using Serilog; -using SharpDX.Direct3D; -using SharpDX.Direct3D11; -using SharpDX.DXGI; - -using Device = SharpDX.Direct3D11.Device; namespace Dalamud.Game.Internal.DXGI { @@ -59,6 +53,7 @@ namespace Dalamud.Game.Internal.DXGI this.Present = p; this.IsReshade = true; + break; } catch (Exception ex) { diff --git a/Dalamud/Interface/Internal/InterfaceManager.cs b/Dalamud/Interface/Internal/InterfaceManager.cs index 0f218f4e5..32dc6c8fb 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; -using System.Numerics; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Threading; @@ -416,6 +416,7 @@ namespace Dalamud.Interface.Internal return this.presentHook.Original(swapChain, syncInterval, presentFlags); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] private void RenderImGui() { // Process information needed by ImGuiHelpers each frame.