mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Remove hook timing
This commit is contained in:
parent
5812b5a9c0
commit
383f8b1713
1 changed files with 1 additions and 8 deletions
|
|
@ -25,8 +25,6 @@ namespace Dalamud.Game.Internal.Gui
|
|||
/// </summary>
|
||||
private readonly Hook<CreateFlyTextDelegate> createFlyTextHook;
|
||||
|
||||
private readonly Stopwatch hookTimer;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FlyTextGui"/> class.
|
||||
/// </summary>
|
||||
|
|
@ -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);
|
||||
|
||||
/// <summary>
|
||||
/// 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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue