0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 15:10:44 -05:00

Force stringbuilder to use size to improve perf

This commit is contained in:
Dev 2024-11-10 15:58:14 +00:00
parent 35f82f50fa
commit 0dba325690

View File

@ -42,7 +42,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
NotificationManagerClass.DisplayMessageNotification(toastMessage, ENotificationDurationType.Infinite, ENotificationIconType.Alert, Color.red);
// Build the error message we'll put in the BepInEx and in-game consoles
var stringBuilder = new StringBuilder();
var stringBuilder = new StringBuilder(60);
stringBuilder.AppendLine($"{consoleHeaderMessage}:");
foreach (string error in Chainloader.DependencyErrors)
{