Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…TERMINATOR into main

a
  • Loading branch information
Kuuuube committed Dec 23, 2020
2 parents 2e7d096 + 93f6c62 commit 52f65ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Filter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class Chatter_Exterminator_Filter : IFilter
private Vector2 _lastPos;
private const float _threshold = 0.9f;
private float _AntichatterOffsetY = 15;
private float _Xoffset = 1.96f;
private float _FuncStretch = 1.7f;
public Vector2 Filter(Vector2 point)
{
Vector2 calcTarget = new Vector2();
Expand All @@ -29,7 +31,7 @@ public Vector2 Filter(Vector2 point)
float target = 1 - _threshold;
float weight = (float)(1.0 - (1.0 / (float)(1.0 / target)));

weightModifier = (float)Pow(((distance * -1 + (AntichatterStrength - 100)) / 100), 999) + _AntichatterOffsetY;
weightModifier = (float)Pow(((distance * -1 + (AntichatterStrength - _FuncStretch)) / _Xoffset), 19) + _AntichatterOffsetY;

// Limit minimum
if (weightModifier + _AntichatterOffsetY < 0)
Expand All @@ -50,4 +52,4 @@ public Vector2 Filter(Vector2 point)
[Property("Chatter Extermination Strength")]
public float AntichatterStrength { set; get; } = 3;
}
}
}
6 changes: 4 additions & 2 deletions Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Interp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public AntiChatter(ITimer scheduler) : base(scheduler) { }
private SyntheticTabletReport report;
private const float threshold = 0.9f;
private float _AntichatterOffsetY = 15;
private float _Xoffset = 1.96f;
private float _FuncStretch = 1.7f;

public override void UpdateState(SyntheticTabletReport report)
{
Expand Down Expand Up @@ -50,7 +52,7 @@ public Vector2 Filter(Vector2 calcTarget)
float target = 1 - threshold;
float weight = (float)(1.0 - (1.0 / Pow((float)(1.0 / target), (float)1 / 1000)));

var weightModifier = (float)Pow(((distance * -1 + (AntichatterStrength - 100)) / 100), 999) + _AntichatterOffsetY;
var weightModifier = (float)Pow(((distance * -1 + (AntichatterStrength - _FuncStretch)) / _Xoffset), 19) + _AntichatterOffsetY;

// Limit minimum
if (weightModifier + _AntichatterOffsetY < 0)
Expand All @@ -70,4 +72,4 @@ public Vector2 Filter(Vector2 calcTarget)
[Property("Chatter Extermination Strength")]
public float AntichatterStrength { set; get; } = 3;
}
}
}
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# Kuuube's CHATTER EXTERMINATOR
# Kuuube's **CHATTER EXTERMINATOR**

Extremely simple to use with perfect low latency **CHATTER EXTERMINATION**

Simply enable the filter or interpolator and input a number 1-10 (and 1000 for hertz if using the interpolator) then apply the settings.

Recommended settings: 2-3 for drag and 5 for hover.

The filter version is slightly lower latency (0ms vs 1ms) compared to the interpolator version. However, the interpolator will remove any choppiness caused by moving at slow speeds.

Download the latest version [Here](https://github.com/Kuuuube/Kuuube-s-CHATTER-EXTERMINATOR/releases)

0 comments on commit 52f65ea

Please sign in to comment.