Skip to content

Commit

Permalink
Update UnrealDemoScanner.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Aug 22, 2024
1 parent e1f4aa4 commit ec7b9c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions UnrealDemoScanner/UnrealDemoScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ public override string ToString()
public static uint LastLossPacketCount;
public static int CurrentMsgBytes;
public static int MaxBytesPerSecond;
public static List<int> BytesPerSecond = new List<int>();
public static int MsgOverflowSecondsCount;
public static int CurrentMsgHudCount;
public static int CurrentMsgDHudCount;
Expand Down Expand Up @@ -3444,11 +3445,14 @@ public static void RunDemoScanner(string[] args)
}
else
{

if (MaxBytesPerSecond < CurrentMsgBytes)
{
MaxBytesPerSecond = CurrentMsgBytes;
}

BytesPerSecond.Add(CurrentMsgBytes);

if (CurrentMsgBytes >= 970000)
{
MsgOverflowSecondsCount++;
Expand Down Expand Up @@ -9141,6 +9145,10 @@ следующий кадр изменение и 5 кадров нет движ
{
Console.WriteLine("[SERVER DIAGNOSTIC DATA]");
Console.WriteLine("Max input bytes per second: " + MaxBytesPerSecond);
if (BytesPerSecond.Count > 1)
{
Console.WriteLine("Average input bytes per second: " + (int)BytesPerSecond.Average());
}
Console.WriteLine("Max channel overflows (100kbytes rate): " + MsgOverflowSecondsCount);
Console.WriteLine("Max HUD messages per seconds: " + MaxHudMsgPerSecond);
Console.WriteLine("Max DHUD messages per seconds: " + MaxDHudMsgPerSecond);
Expand All @@ -9156,6 +9164,10 @@ следующий кадр изменение и 5 кадров нет движ
{
Console.WriteLine("[БЛОК ДАННЫХ ДЛЯ ДИАГНОСТИКИ СЕРВЕРА]");
Console.WriteLine("Максимальное количество байт в секунду: " + MaxBytesPerSecond);
if (BytesPerSecond.Count > 1)
{
Console.WriteLine("Среднее количество байт в секунду: " + (int)BytesPerSecond.Average());
}
Console.WriteLine("Количество перегрузок канала (100кбайт): " + MsgOverflowSecondsCount);
Console.WriteLine("Количество HUD сообщений в секунду: " + MaxHudMsgPerSecond);
Console.WriteLine("Количество DHUD сообщений в секунду: " + MaxDHudMsgPerSecond);
Expand Down

0 comments on commit ec7b9c3

Please sign in to comment.