mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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>
|
/// </summary>
|
||||||
private readonly Hook<CreateFlyTextDelegate> createFlyTextHook;
|
private readonly Hook<CreateFlyTextDelegate> createFlyTextHook;
|
||||||
|
|
||||||
private readonly Stopwatch hookTimer;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="FlyTextGui"/> class.
|
/// Initializes a new instance of the <see cref="FlyTextGui"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -36,8 +34,6 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
{
|
{
|
||||||
this.Dalamud = dalamud;
|
this.Dalamud = dalamud;
|
||||||
|
|
||||||
this.hookTimer = new Stopwatch();
|
|
||||||
|
|
||||||
this.Address = new FlyTextGuiAddressResolver();
|
this.Address = new FlyTextGuiAddressResolver();
|
||||||
this.Address.Setup(scanner);
|
this.Address.Setup(scanner);
|
||||||
|
|
||||||
|
|
@ -81,7 +77,7 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
uint color,
|
uint color,
|
||||||
uint icon,
|
uint icon,
|
||||||
IntPtr text1,
|
IntPtr text1,
|
||||||
float unk3);
|
float yOffset);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Private delegate for the native AddFlyText function pointer.
|
/// Private delegate for the native AddFlyText function pointer.
|
||||||
|
|
@ -204,7 +200,6 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
var retVal = IntPtr.Zero;
|
var retVal = IntPtr.Zero;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
this.hookTimer.Restart();
|
|
||||||
Log.Verbose("[FlyText] Enter CreateFlyText detour!");
|
Log.Verbose("[FlyText] Enter CreateFlyText detour!");
|
||||||
|
|
||||||
var handled = false;
|
var handled = false;
|
||||||
|
|
@ -298,8 +293,6 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
Log.Verbose(e, "[FlyText] Exception occurred freeing strings in task.");
|
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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue