You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not record task execution time as TickTime individually
The number of recorded instances may be high and subsequently
cause calculations of MSPT or TPS to be abnormally high.
Instead, we record task execution time as a sum on TickTime itself.
Task execution time is tracked for the next tick.
@@ -23079,7 +23079,7 @@ index 61e4ddb9665fb3bc4900c865ad8887d344ff7f7c..8afe24c382e18e799101662ccf87022e
23079
23079
private static MinecraftServer SERVER; // Paper
23080
23080
public static final Logger LOGGER = LogUtils.getLogger();
23081
23081
public static final net.kyori.adventure.text.logger.slf4j.ComponentLogger COMPONENT_LOGGER = net.kyori.adventure.text.logger.slf4j.ComponentLogger.logger(LOGGER.getName()); // Paper
23082
-
@@ -392,6 +392,93 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23082
+
@@ -393,6 +393,93 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23083
23083
return minecraftServer;
23084
23084
}
23085
23085
@@ -23173,7 +23173,7 @@ index 61e4ddb9665fb3bc4900c865ad8887d344ff7f7c..8afe24c382e18e799101662ccf87022e
23173
23173
public MinecraftServer(
23174
23174
// CraftBukkit start
23175
23175
joptsimple.OptionSet options,
23176
-
@@ -824,7 +911,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23176
+
@@ -825,7 +912,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23177
23177
serverLevel.setSpawnSettings(serverLevel.serverLevelData.getDifficulty() != Difficulty.PEACEFUL && serverLevel.getGameRules().getBoolean(GameRules.RULE_SPAWN_MONSTERS)); // Paper - per level difficulty (from setDifficulty(ServerLevel, Difficulty, boolean))
23178
23178
this.updateEffectiveRespawnData();
23179
23179
this.forceTicks = false; // CraftBukkit
@@ -23182,7 +23182,7 @@ index 61e4ddb9665fb3bc4900c865ad8887d344ff7f7c..8afe24c382e18e799101662ccf87022e
23182
23182
new org.bukkit.event.world.WorldLoadEvent(serverLevel.getWorld()).callEvent(); // Paper - call WorldLoadEvent
23183
23183
}
23184
23184
23185
-
@@ -847,6 +934,11 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23185
+
@@ -848,6 +935,11 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23186
23186
public abstract boolean shouldRconBroadcast();
23187
23187
23188
23188
public boolean saveAllChunks(boolean suppressLogs, boolean flush, boolean force) {
@@ -23194,7 +23194,7 @@ index 61e4ddb9665fb3bc4900c865ad8887d344ff7f7c..8afe24c382e18e799101662ccf87022e
23194
23194
boolean flag = false;
23195
23195
23196
23196
for (ServerLevel serverLevel : this.getAllLevels()) {
23197
-
@@ -854,7 +946,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23197
+
@@ -855,7 +947,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23198
23198
LOGGER.info("Saving chunks for level '{}'/{}", serverLevel, serverLevel.dimension().location());
23199
23199
}
23200
23200
@@ -23203,7 +23203,7 @@ index 61e4ddb9665fb3bc4900c865ad8887d344ff7f7c..8afe24c382e18e799101662ccf87022e
23203
23203
flag = true;
23204
23204
}
23205
23205
23206
-
@@ -944,7 +1036,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23206
+
@@ -945,7 +1037,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23207
23207
}
23208
23208
}
23209
23209
@@ -23212,7 +23212,7 @@ index 61e4ddb9665fb3bc4900c865ad8887d344ff7f7c..8afe24c382e18e799101662ccf87022e
0 commit comments