mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 01:50:45 -05:00
Force stringbuilder to use size to improve perf
This commit is contained in:
parent
35f82f50fa
commit
0dba325690
@ -42,7 +42,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
|
|||||||
NotificationManagerClass.DisplayMessageNotification(toastMessage, ENotificationDurationType.Infinite, ENotificationIconType.Alert, Color.red);
|
NotificationManagerClass.DisplayMessageNotification(toastMessage, ENotificationDurationType.Infinite, ENotificationIconType.Alert, Color.red);
|
||||||
|
|
||||||
// Build the error message we'll put in the BepInEx and in-game consoles
|
// 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}:");
|
stringBuilder.AppendLine($"{consoleHeaderMessage}:");
|
||||||
foreach (string error in Chainloader.DependencyErrors)
|
foreach (string error in Chainloader.DependencyErrors)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user