mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 20:59:39 +01:00
Fix more FPS readout issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user