relieve gc pressure maybe
This commit is contained in:
@@ -136,7 +136,7 @@ public class PlayerDataFactory
|
||||
totalWaitTime -= 50;
|
||||
}
|
||||
|
||||
Stopwatch st = Stopwatch.StartNew();
|
||||
DateTime start = DateTime.UtcNow;
|
||||
|
||||
// penumbra call, it's currently broken
|
||||
IReadOnlyDictionary<string, string[]>? resolvedPaths;
|
||||
@@ -225,8 +225,7 @@ public class PlayerDataFactory
|
||||
}
|
||||
}
|
||||
|
||||
st.Stop();
|
||||
_logger.LogInformation("Building character data for {obj} took {time}ms", objectKind, TimeSpan.FromTicks(st.ElapsedTicks).TotalMilliseconds);
|
||||
_logger.LogInformation("Building character data for {obj} took {time}ms", objectKind, TimeSpan.FromTicks(DateTime.UtcNow.Ticks - start.Ticks).TotalMilliseconds);
|
||||
|
||||
return previousData;
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
|
||||
if (string.IsNullOrEmpty(PlayerName))
|
||||
{
|
||||
var pc = _dalamudUtil.FindPlayerByNameHash(OnlineUser.Ident);
|
||||
if (pc == default((string, nint))) return;
|
||||
if (pc.ObjectId == 0) return;
|
||||
Logger.LogDebug("One-Time Initializing {this}", this);
|
||||
Initialize(pc.Name);
|
||||
Logger.LogDebug("One-Time Initialized {this}", this);
|
||||
|
||||
Reference in New Issue
Block a user