Config option to allow custom input rate

This commit is contained in:
N00MKRAD
2021-03-23 17:13:22 +01:00
parent 7af4b980bb
commit cee7c4656b

View File

@@ -45,7 +45,7 @@ namespace Flowframes.UI
fpsStr = fps.ToString();
Logger.Log($"Video FPS: {fpsStr} - Total Number Of Frames: {frameCount}", false, true);
Program.mainForm.GetInputFpsTextbox().ReadOnly = fps > 0;
Program.mainForm.GetInputFpsTextbox().ReadOnly = (fps > 0 && !Config.GetBool("allowCustomInputRate", false));
Program.mainForm.currInFps = fps;
Program.mainForm.currInFrames = frameCount;
Program.mainForm.UpdateInputInfo();