diff --git a/Minecraft.Client/MinecraftServer.cpp b/Minecraft.Client/MinecraftServer.cpp index 005c49c4..2fd63f99 100644 --- a/Minecraft.Client/MinecraftServer.cpp +++ b/Minecraft.Client/MinecraftServer.cpp @@ -1839,7 +1839,7 @@ void MinecraftServer::run(int64_t seed, void *lpParameter) int64_t iter_t3 = System::currentTimeMillis(); int64_t iter_total = iter_t3 - iter_t0; outerIterTickWork += iter_total; - if (iter_total > 60) + if (iter_total > 200) { ServerRuntime::LogInfof("perf", "iter total=%lldms pre=%lld tick=%lld post=%lld", @@ -2198,7 +2198,7 @@ void MinecraftServer::run(int64_t seed, void *lpParameter) } } - if (outerIterTotal > 60) + if (outerIterTotal > 200) { ServerRuntime::LogInfof("perf", "outerIter total=%lldms tickWork=%lld postTickOverhead=%lld", @@ -2263,7 +2263,7 @@ void MinecraftServer::tick() { // Per-substep wall-clock timing. Logs one summary line when total tick // exceeds TICK_SLOW_THRESHOLD_MS. - const int64_t TICK_SLOW_THRESHOLD_MS = 60; + const int64_t TICK_SLOW_THRESHOLD_MS = 200; const int kMaxLevelsRecorded = 8; int64_t tickStart = System::currentTimeMillis(); int64_t lvlTickMs[kMaxLevelsRecorded] = {0}; diff --git a/Minecraft.Client/PlayerChunkMap.cpp b/Minecraft.Client/PlayerChunkMap.cpp index 9ac67927..b3c36404 100644 --- a/Minecraft.Client/PlayerChunkMap.cpp +++ b/Minecraft.Client/PlayerChunkMap.cpp @@ -379,7 +379,7 @@ void PlayerChunkMap::tick() { #if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD) // Substep timing for slow chunkMap diagnostics. - const int64_t CHUNKMAP_SLOW_THRESHOLD_MS = 50; + const int64_t CHUNKMAP_SLOW_THRESHOLD_MS = 150; int64_t cm_t0 = System::currentTimeMillis(); int cm_addReqStart = (int)addRequests.size(); g_findUsAccum = 0; diff --git a/Minecraft.Client/ServerConnection.cpp b/Minecraft.Client/ServerConnection.cpp index 9ebf7259..a6f0733d 100644 --- a/Minecraft.Client/ServerConnection.cpp +++ b/Minecraft.Client/ServerConnection.cpp @@ -189,7 +189,7 @@ void ServerConnection::tick() #if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD) int64_t sc_loopTotal = System::currentTimeMillis() - sc_loopT0; - if (sc_loopTotal > 50) + if (sc_loopTotal > 150) { ServerRuntime::LogInfof("perf", "conn playerLoop total=%lldms players=%d chunkUs=%lld tickUs=%lld flushUs=%lld | avg chunk=%lld tick=%lld flush=%lld", diff --git a/Minecraft.Client/ServerLevel.cpp b/Minecraft.Client/ServerLevel.cpp index 7d34f7cc..edb825af 100644 --- a/Minecraft.Client/ServerLevel.cpp +++ b/Minecraft.Client/ServerLevel.cpp @@ -201,7 +201,7 @@ void ServerLevel::tick() #if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD) // ts[N] = wall-clock at substep N. Logged when level total exceeds // LEVEL_SLOW_THRESHOLD_MS to pinpoint the dominant substep. - const int64_t LEVEL_SLOW_THRESHOLD_MS = 50; + const int64_t LEVEL_SLOW_THRESHOLD_MS = 150; int64_t ts[13]; ts[0] = System::currentTimeMillis(); #endif