Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Optimize hitmarker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak authored Aug 20, 2020
1 parent bf64c78 commit d03e5c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions netcon_stuff/hitmarker/hitmarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -124,6 +121,6 @@ setInterval(() => {

ticksLeft--;
}
}, Math.floor(1000 / TICK_RATE)).unref();
}, 75).unref();

socket.setEncoding('utf8');

0 comments on commit d03e5c7

Please sign in to comment.