Fix more FPS readout issues

This commit is contained in:
N00MKRAD
2024-10-13 16:58:06 +02:00
parent 82c43ce3ea
commit 7e0182f007
16 changed files with 69 additions and 77 deletions

View File

@@ -5,7 +5,6 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using Flowframes.Data;
using System.Management.Automation;
@@ -13,7 +12,6 @@ using System.Drawing;
using Flowframes.MiscUtils;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json;
using Win32Interop.Structs;
namespace Flowframes
{
@@ -428,5 +426,11 @@ namespace Flowframes
return JsonConvert.SerializeObject(o, indent ? Formatting.Indented : Formatting.None, settings);
}
// TODO: Remove once NmkdUtils has been adopted
public static bool EqualsRoughly(this float a, float b, float tolerance = 0.0001f)
{
return Math.Abs(a - b) < tolerance;
}
}
}