Skip to content

Commit

Permalink
Only log offloading benefits every 10k statements not 1k statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Apr 27, 2024
1 parent 727814b commit f3d9ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModTek/Features/Logging/MTLoggerAsyncQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal MTLoggerAsyncQueue(Action<MTLoggerMessageDto> processor)
private static readonly MTStopwatch _loggingStopwatch = new()
{
Callback = stats => Log.Main.Debug?.Log($"Asynchronous logging offloaded {stats.TotalMS - _queueStopwatch.GetStats().TotalMS} ms from the main thread."),
CallbackForEveryNumberOfMeasurements = 1000
CallbackForEveryNumberOfMeasurements = 10000
};

private void Loop()
Expand Down

0 comments on commit f3d9ef4

Please sign in to comment.