Minor changes and fixes around tick warping
When warping and frozen the game will now run at 20 (frozen) TPS instead of as fast as possible around a loop Frozen ticks will no longer count towards tick warping TPS logger will now display `TPS: 0.0` when the game is frozen
This commit is contained in:
2 files changed
+12
-11
No files matched your search
@@ -128,6 +128,9 @@ public class HUDController
|
||||
{
|
||||
double MSPT = Mth.average(server.tickTimes) * 1.0E-6D;
|
||||
double TPS = 1000.0D / Math.max((TickSpeed.time_warp_start_time != 0)?0.0:TickSpeed.mspt, MSPT);
|
||||
if (TickSpeed.isPaused()) {
|
||||
TPS = 0;
|
||||
}
|
||||
String color = Messenger.heatmap_color(MSPT,TickSpeed.mspt);
|
||||
return new Component[]{Messenger.c(
|
||||
"g TPS: ", String.format(Locale.US, "%s %.1f",color, TPS),
|
||||
|
||||
Reference in new issue
Block a user