chore: adjust minimum times for hitch detection a bit

This commit is contained in:
goat 2023-02-18 23:36:25 +01:00
parent d4f5b3f959
commit 7ffd196c2e
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ public sealed class Framework : IDisposable, IServiceType
private static Stopwatch statsStopwatch = new(); private static Stopwatch statsStopwatch = new();
private readonly Stopwatch updateStopwatch = new(); private readonly Stopwatch updateStopwatch = new();
private readonly HitchDetector hitchDetector = new("FrameworkUpdate", 20); private readonly HitchDetector hitchDetector = new("FrameworkUpdate", 50);
private readonly Hook<OnUpdateDetour> updateHook; private readonly Hook<OnUpdateDetour> updateHook;
private readonly Hook<OnRealDestroyDelegate> destroyHook; private readonly Hook<OnRealDestroyDelegate> destroyHook;

View file

@ -22,8 +22,8 @@ public sealed class GameNetwork : IDisposable, IServiceType
private readonly Hook<ProcessZonePacketDownDelegate> processZonePacketDownHook; private readonly Hook<ProcessZonePacketDownDelegate> processZonePacketDownHook;
private readonly Hook<ProcessZonePacketUpDelegate> processZonePacketUpHook; private readonly Hook<ProcessZonePacketUpDelegate> processZonePacketUpHook;
private readonly HitchDetector hitchDetectorUp = new("GameNetworkUp"); private readonly HitchDetector hitchDetectorUp = new("GameNetworkUp", 30);
private readonly HitchDetector hitchDetectorDown = new("GameNetworkDown"); private readonly HitchDetector hitchDetectorDown = new("GameNetworkDown", 30);
private IntPtr baseAddress; private IntPtr baseAddress;

View file

@ -42,7 +42,7 @@ public sealed class UiBuilder : IDisposable
internal UiBuilder(string namespaceName) internal UiBuilder(string namespaceName)
{ {
this.stopwatch = new Stopwatch(); this.stopwatch = new Stopwatch();
this.hitchDetector = new HitchDetector($"UiBuilder({namespaceName})", 15.0f); this.hitchDetector = new HitchDetector($"UiBuilder({namespaceName})", 100);
this.namespaceName = namespaceName; this.namespaceName = namespaceName;
this.interfaceManager.Draw += this.OnDraw; this.interfaceManager.Draw += this.OnDraw;