From 29a32b64535b7725281fd9311efa7a1346d17c02 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Fri, 27 Jan 2023 04:41:31 -0600 Subject: [PATCH] do we really need to multiply by bit count? --- AASBufferFix/AASBufferFix.cs | 2 +- AASBufferFix/Utils.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/AASBufferFix/AASBufferFix.cs b/AASBufferFix/AASBufferFix.cs index 6f1fbd1..3fd085e 100644 --- a/AASBufferFix/AASBufferFix.cs +++ b/AASBufferFix/AASBufferFix.cs @@ -45,7 +45,7 @@ public class AASBufferFix : MonoBehaviour public void OnApplyAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte) { //create the synced data footprint - aasFootprint = ((settingsFloat.Length * 32) + 1) * ((settingsInt.Length * 32) + 1) * ((settingsByte.Length * 8) + 1); + aasFootprint = (settingsFloat.Length + 1) * ((settingsInt.Length) + 1) * ((settingsByte.Length) + 1); if (!SyncDataMatchesExpected()) { diff --git a/AASBufferFix/Utils.cs b/AASBufferFix/Utils.cs index 73eaa82..e946b26 100644 --- a/AASBufferFix/Utils.cs +++ b/AASBufferFix/Utils.cs @@ -41,9 +41,7 @@ public class Utils } //bool to byte - avatarBoolCount = ((int)Math.Ceiling((double)avatarBoolCount / 8) * 8); - avatarFloatCount *= 32; - avatarIntCount *= 32; + avatarBoolCount = ((int)Math.Ceiling((double)avatarBoolCount / 8)); //create the footprint return (avatarFloatCount + 1) * (avatarIntCount + 1) * (avatarBoolCount + 1);