mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly Paper Changes: bfc807c2 Improve spawn loading and debug output for waiting on a chunk (#2595) 826b4762 Remove debug logging for incremental saves (#2600) d39916c7 Add more timings to chunk provider tick (#2549) 43ec79a3 Add server oversleep to timings (#2509) 1d2a5915 Check if there are workers before trying to notify them (#2593) 89eb8902 [CI-SKIP] Rebuild patches 27fca92f Drop Optimize-GameRules-to-use-LinkedHashMap (#2594) e4e80f8a Updated Upstream (Bukkit)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From ab5c2851dd98c8826b7b05f51c4fcfa0f9202736 Mon Sep 17 00:00:00 2001
|
||||
From bb9d55a4c4f8c86ab51da99d8c3c5c2fb0541eb0 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Sun, 28 Jul 2019 01:27:37 -0500
|
||||
Subject: [PATCH] Add 5 second tps average in /tps
|
||||
@@ -10,7 +10,7 @@ Subject: [PATCH] Add 5 second tps average in /tps
|
||||
3 files changed, 11 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
index 427c1da00..55aba2157 100644
|
||||
index ab596e74e..093457ed7 100644
|
||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
@@ -174,7 +174,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
@@ -22,7 +22,7 @@ index 427c1da00..55aba2157 100644
|
||||
public boolean lagging = false; // Purpur
|
||||
public final SlackActivityAccountant slackActivityAccountant = new SlackActivityAccountant();
|
||||
// Spigot end
|
||||
@@ -819,6 +819,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
@@ -825,6 +825,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
private static final long MAX_CATCHUP_BUFFER = TICK_TIME * TPS * 60L;
|
||||
private long lastTick = 0;
|
||||
private long catchupTime = 0;
|
||||
@@ -30,7 +30,7 @@ index 427c1da00..55aba2157 100644
|
||||
public final RollingAverage tps1 = new RollingAverage(60);
|
||||
public final RollingAverage tps5 = new RollingAverage(60 * 5);
|
||||
public final RollingAverage tps15 = new RollingAverage(60 * 15);
|
||||
@@ -895,13 +896,17 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
@@ -901,13 +902,17 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
{
|
||||
final long diff = curTime - tickSection;
|
||||
java.math.BigDecimal currentTps = TPS_BASE.divide(new java.math.BigDecimal(diff), 30, java.math.RoundingMode.HALF_UP);
|
||||
|
||||
Reference in New Issue
Block a user