aboutsummaryrefslogtreecommitdiff
path: root/features/hud
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 22:25:39 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 22:25:39 +0800
commit24f2fddb6f70576bc101021637014af1bdbb68b6 (patch)
treec65d9c01a6d475e4737fc54ca67ae12e3c7d8fe3 /features/hud
parentb1bc366e52cf719f0e3f01719fd787e7873baf84 (diff)
downloadSoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.tar.gz
SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.tar.bz2
SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.zip
+ finish performance thing (mostly)
+ optimisations for slayer hide 0hp nametags
Diffstat (limited to 'features/hud')
-rw-r--r--features/hud/index.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index a889345..6f23b24 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -14,9 +14,6 @@ import { numberWithCommas } from "../../utils/numberUtils.js";
const ProcessBuilder = Java.type("java.lang.ProcessBuilder")
const Scanner = Java.type("java.util.Scanner")
-const Base64 = Java.type("java.util.Base64")
-const CompressedStreamTools = Java.type("net.minecraft.nbt.CompressedStreamTools")
-const ByteArrayInputStream = Java.type("java.io.ByteArrayInputStream")
class Hud extends Feature {
constructor() {
@@ -405,6 +402,7 @@ class Hud extends Feature {
let time = instant.getEpochSecond() + (instant.getNano() / 1000000000);
let thisframeTime = time - this.lastFrame
+ // console.log(thisframeTime * 1000)
if (thisframeTime > this.slowestFrameTime) {
this.slowestFrameTime = thisframeTime