From 5ef29d78caf03c8ec81e24814f1fe59535c7fc37 Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Tue, 11 Nov 2025 13:50:37 +0200 Subject: [PATCH] truebit decoder seems to be way less noisy with lower precision.. inspect this later!! --- lua/src/dcode.lua | 2 +- lua/src/main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/src/dcode.lua b/lua/src/dcode.lua index 359cfa5..6e19a09 100644 --- a/lua/src/dcode.lua +++ b/lua/src/dcode.lua @@ -1,7 +1,7 @@ local char, byte, floor, band, rshift = string.char, string.byte, math.floor, bit32.band, bit32.arshift -local PREC = 10 +local PREC = 8 local PREC_POW = 2 ^ PREC local PREC_POW_HALF = 2 ^ (PREC - 1) local STRENGTH_MIN = 2 ^ (PREC - 8 + 1) diff --git a/lua/src/main.lua b/lua/src/main.lua index eb13846..9d49d9f 100644 --- a/lua/src/main.lua +++ b/lua/src/main.lua @@ -50,7 +50,7 @@ function ui() end local dcode = require "dcode" -local make_decoder = dcode.make_dec +local make_decoder = dcode.make_truebit_dec local ws = http.websocket("ws://vps.sad.ovh:5821/ws")