aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity
diff options
context:
space:
mode:
authorRichard Hendricks <richardhendricks@pobox.com>2018-06-02 03:05:39 -0500
committerRichard Hendricks <richardhendricks@pobox.com>2018-06-02 03:05:39 -0500
commitfe08b96bd94a487a2e26654b1812691a91bd3407 (patch)
treea1bb5aa42beae11240267b5edc6e459a716cc83c /src/main/java/gregtech/api/metatileentity
parentaccc2b96dbd87edcc887734593937ad8d4fe7129 (diff)
downloadGT5-Unofficial-fe08b96bd94a487a2e26654b1812691a91bd3407.tar.gz
GT5-Unofficial-fe08b96bd94a487a2e26654b1812691a91bd3407.tar.bz2
GT5-Unofficial-fe08b96bd94a487a2e26654b1812691a91bd3407.zip
For the first 6 ticks after pushing, always push. Then goto every 5 ticks. Should work OK for any machine. For higher output performance, use larger output stack size. Uses item ID numbers instead of strings to sort, much faster. Resolves https://github.com/GTNewHorizons/NewHorizons/issues/3006
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity')
-rw-r--r--src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java
index 609a35bfae..95f3416a00 100644
--- a/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java
+++ b/src/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java
@@ -712,8 +712,10 @@ public class BaseMetaTileEntity extends BaseTileEntity implements IGregTechTileE
if (tTime > tWorstTime) {
tWorstTime = tTime;
}
+ // Uncomment this line to print out tick-by-tick times.
+ //tList.add("tTime " + tTime);
}
- tList.add("Average CPU-load of ~" + (tAverageTime / mTimeStatistics.length) + "ns since " + mTimeStatistics.length + " ticks with worst time of " + tWorstTime + "ns.");
+ tList.add("Average CPU-load of ~" + (tAverageTime / mTimeStatistics.length) + "ns over " + mTimeStatistics.length + " ticks with worst time of " + tWorstTime + "ns.");
}
if (mLagWarningCount > 0) {
tList.add("Caused " + (mLagWarningCount >= 10 ? "more than 10" : mLagWarningCount) + " Lag Spike Warnings (anything taking longer than " + GregTech_API.MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING + "ms) on the Server.");