diff options
| author | Jacob Palecki <[email protected]> | 2020-09-25 23:03:00 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-25 23:03:00 -0700 |
| commit | 206cdc1712d02d15b85393a57ca744fbc014a55c (patch) | |
| tree | 5d28926aee87c077ffc4ed7222469bbf2f28bd2c /grapher/Models/Calculations/AccelChartData.cs | |
| parent | Last mouse move perfetly responsive at 100 FPS (diff) | |
| download | rawaccel-206cdc1712d02d15b85393a57ca744fbc014a55c.tar.xz rawaccel-206cdc1712d02d15b85393a57ca744fbc014a55c.zip | |
SetActive changes field default, bugs fixed
Diffstat (limited to 'grapher/Models/Calculations/AccelChartData.cs')
| -rw-r--r-- | grapher/Models/Calculations/AccelChartData.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/grapher/Models/Calculations/AccelChartData.cs b/grapher/Models/Calculations/AccelChartData.cs index 98d501b..60d4c89 100644 --- a/grapher/Models/Calculations/AccelChartData.cs +++ b/grapher/Models/Calculations/AccelChartData.cs @@ -14,7 +14,7 @@ namespace grapher.Models.Calculations VelocityPoints = new SortedDictionary<double, double>(); GainPoints = new SortedDictionary<double, double>(); OutVelocityToPoints = new Dictionary<double, (double, double, double)>(); - LogToIndex = new int[601]; + LogToIndex = new int[701]; } #endregion Constructors @@ -85,15 +85,13 @@ namespace grapher.Models.Calculations { log = -2; } - else if (log > 4) + else if (log > 5) { - log = 4; - } - else - { - log = log * 100 + 200; + log = 5; } + log = log * 100 + 200; + var velIdx = LogToIndex[(int)log]; return velIdx; |