From d03e5c7f3afc7422cef967ab0925e300d3bde00c Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Thu, 20 Aug 2020 16:26:44 +0200 Subject: [PATCH] Optimize `hitmarker.js` --- netcon_stuff/hitmarker/hitmarker.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/netcon_stuff/hitmarker/hitmarker.js b/netcon_stuff/hitmarker/hitmarker.js index 614a58b..57d0364 100644 --- a/netcon_stuff/hitmarker/hitmarker.js +++ b/netcon_stuff/hitmarker/hitmarker.js @@ -9,9 +9,6 @@ alias -hitmarker_attack "-attack; echo hitmarker_off"; bind mouse1 +hitmarker_attack; */ -// If your FPS drops, change this to 10. -const TICK_RATE = 64; - let ticksLeft = 0; let previous = {}; let timeout; @@ -124,6 +121,6 @@ setInterval(() => { ticksLeft--; } -}, Math.floor(1000 / TICK_RATE)).unref(); +}, 75).unref(); socket.setEncoding('utf8');