diff --git a/Torch.Server/Initializer.cs b/Torch.Server/Initializer.cs index 3d6a4cd..f0dec47 100644 --- a/Torch.Server/Initializer.cs +++ b/Torch.Server/Initializer.cs @@ -173,7 +173,7 @@ namespace Torch.Server { var steamCmdProc = new ProcessStartInfo(steamCmdExePath) { - Arguments = string.Format(TOOL_ARGS, configuration.GetValue("gamePath", "../"), depotId, "3111493184861426002"), + Arguments = string.Format(TOOL_ARGS, configuration.GetValue("gamePath", "../"), depotId, "14195799952783859"), WorkingDirectory = path, RedirectStandardOutput = true }; diff --git a/Torch/Managers/ScriptCompilationManager.cs b/Torch/Managers/ScriptCompilationManager.cs index 9939a85..ecc4d57 100644 --- a/Torch/Managers/ScriptCompilationManager.cs +++ b/Torch/Managers/ScriptCompilationManager.cs @@ -214,7 +214,8 @@ public class ScriptCompilationManager : Manager return null; } - private readonly CSharpCompilationOptions _compilationOptions = new(OutputKind.DynamicallyLinkedLibrary); + private readonly CSharpCompilationOptions _compilationOptions = new(OutputKind.DynamicallyLinkedLibrary, + optimizationLevel: OptimizationLevel.Release, platform: Platform.X64); private readonly CSharpParseOptions _parseOptions = new(LanguageVersion.CSharp11, DocumentationMode.None); private CSharpCompilation CreateCompilation(string assemblyFileName, IEnumerable