diff --git a/src/SlatedGameToolkit.Framework/GameEngine.cs b/src/SlatedGameToolkit.Framework/GameEngine.cs index 14cf610..454e7d3 100644 --- a/src/SlatedGameToolkit.Framework/GameEngine.cs +++ b/src/SlatedGameToolkit.Framework/GameEngine.cs @@ -12,8 +12,7 @@ namespace SlatedGameToolkit.Framework { /// public static class GameEngine { public static readonly Logger logger = new LoggerConfiguration(). - WriteTo.Console(). - WriteTo.File("SlatedGameToolKit.Framework.Log"). + WriteTo.File("SlatedGameToolKit.Framework.Log", rollingInterval: RollingInterval.Day, fileSizeLimitBytes: 1048576, rollOnFileSizeLimit: true). CreateLogger(); private static readonly object ignitionLock = new object(); private static Thread thread; @@ -32,7 +31,7 @@ namespace SlatedGameToolkit.Framework { return 1 / TimeSpan.FromMilliseconds(updateDeltaTime).TotalSeconds; } set { - Interlocked.Exchange(ref updateDeltaTime, Math.Min(5, (long) TimeSpan.FromSeconds(1 / value).TotalMilliseconds)); + Interlocked.Exchange(ref updateDeltaTime, Math.Max(5, (long) TimeSpan.FromSeconds(1 / value).TotalMilliseconds)); deltaChanged = true; } } diff --git a/src/SlatedGameToolkit.Framework/SlatedGameToolkit.Framework.csproj b/src/SlatedGameToolkit.Framework/SlatedGameToolkit.Framework.csproj index fa2654a..4cfed17 100644 --- a/src/SlatedGameToolkit.Framework/SlatedGameToolkit.Framework.csproj +++ b/src/SlatedGameToolkit.Framework/SlatedGameToolkit.Framework.csproj @@ -7,7 +7,6 @@ - diff --git a/src/SlatedGameToolkit.Tools/Commands/GraphicalPlaygroundCommand.cs b/src/SlatedGameToolkit.Tools/Commands/GraphicalPlaygroundCommand.cs index 705f3a7..e697180 100644 --- a/src/SlatedGameToolkit.Tools/Commands/GraphicalPlaygroundCommand.cs +++ b/src/SlatedGameToolkit.Tools/Commands/GraphicalPlaygroundCommand.cs @@ -13,6 +13,7 @@ namespace SlatedGameToolkit.Tools.Commands public bool Execute(IInteractable interactable, string[] args) { if (args.Length != 1) return false; + args[0] = args[0].ToLower(); if (args[0].Equals("start")) { if (GameEngine.Running) { interactable.Tell("Engine is already running!");