From 383f8b1713655830f794536aa369b792115d7d93 Mon Sep 17 00:00:00 2001 From: liam Date: Tue, 10 Aug 2021 15:19:40 -0400 Subject: [PATCH] Remove hook timing --- Dalamud/Game/Gui/FlyTextGui.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Dalamud/Game/Gui/FlyTextGui.cs b/Dalamud/Game/Gui/FlyTextGui.cs index 5d7e9eef9..84f635dd6 100644 --- a/Dalamud/Game/Gui/FlyTextGui.cs +++ b/Dalamud/Game/Gui/FlyTextGui.cs @@ -25,8 +25,6 @@ namespace Dalamud.Game.Internal.Gui /// private readonly Hook createFlyTextHook; - private readonly Stopwatch hookTimer; - /// /// Initializes a new instance of the class. /// @@ -36,8 +34,6 @@ namespace Dalamud.Game.Internal.Gui { this.Dalamud = dalamud; - this.hookTimer = new Stopwatch(); - this.Address = new FlyTextGuiAddressResolver(); this.Address.Setup(scanner); @@ -81,7 +77,7 @@ namespace Dalamud.Game.Internal.Gui uint color, uint icon, IntPtr text1, - float unk3); + float yOffset); /// /// Private delegate for the native AddFlyText function pointer. @@ -204,7 +200,6 @@ namespace Dalamud.Game.Internal.Gui var retVal = IntPtr.Zero; try { - this.hookTimer.Restart(); Log.Verbose("[FlyText] Enter CreateFlyText detour!"); var handled = false; @@ -298,8 +293,6 @@ namespace Dalamud.Game.Internal.Gui Log.Verbose(e, "[FlyText] Exception occurred freeing strings in task."); } }); - this.hookTimer.Stop(); - Log.Verbose($"[FlyText] Hook took {this.hookTimer.ElapsedTicks} ticks, {this.hookTimer.ElapsedMilliseconds}ms."); } catch (Exception e) {