AkaCore.Features.Utility.Modules.FPSProtection.CheckFps C# (CSharp) Method

CheckFps() public static method

public static CheckFps ( ) : bool
return bool
        public static bool CheckFps()
        {
            if (!Manager.MenuManager.EnableFPS)
            {
                return false;
            }
            var rate = Manager.MenuManager.CalcPerSecond;
            if (fps < Manager.MenuManager.MinFps)
            {
                rate = Math.Min(10, Manager.MenuManager.CalcPerSecond);
            }
            if (delay > 1000f / rate)
            {
                delay = 0;
                return false;
            }
            return true;
        }