mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Don't allow negative fps calculation in UI
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Flowframes.Ui
|
||||
Program.mainForm.SetProgress(percent);
|
||||
|
||||
float generousTime = ((AiProcess.processTime.ElapsedMilliseconds - AiProcess.lastStartupTimeMs) / 1000f);
|
||||
float fps = (float)frames / generousTime;
|
||||
float fps = ((float)frames / generousTime).Clamp(0, 9999);
|
||||
string fpsIn = (fps / currentFactor).ToString("0.00");
|
||||
string fpsOut = fps.ToString("0.00");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user