Use CannyFastMath & Update Some Packages (#1130)

update a bunch of packages and use JetBrains.Annotations as private asset as needed

mark some hot math methods agg inline to benefit from loop opts

use FMA for interp

use canny min/max/clamp

make Quaternion NormalizeAngle fixed time and faster

clean up YamlDotNet references
This commit is contained in:
Tyler Young
2020-06-17 20:25:36 -04:00
committed by GitHub
parent af249f80c8
commit 9cbdd1058c
39 changed files with 816 additions and 215 deletions

View File

@@ -5,6 +5,8 @@ using Robust.Client.Graphics.Drawing;
using Robust.Shared.Input;
using Robust.Shared.Localization;
using Robust.Shared.Maths;
using Math = CannyFastMath.Math;
using MathF = CannyFastMath.MathF;
namespace Robust.Client.UserInterface.Controls
{
@@ -342,7 +344,7 @@ namespace Robust.Client.UserInterface.Controls
var activeSize = active?.MinimumSize ?? Vector2.Zero;
var inactiveSize = inactive?.MinimumSize ?? Vector2.Zero;
headerSize = (int) Math.Max(activeSize.Y, inactiveSize.Y);
headerSize = (int) MathF.Max(activeSize.Y, inactiveSize.Y);
headerSize += font.GetHeight(UIScale);
}