From 24f2fddb6f70576bc101021637014af1bdbb68b6 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 25 Jun 2022 22:25:39 +0800 Subject: + finish performance thing (mostly) + optimisations for slayer hide 0hp nametags --- features/hud/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'features/hud') 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 -- cgit