summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Logging/LogManager.cs
diff options
context:
space:
mode:
authorMarcos Miller Dantas <mmillerdantas@outlook.com>2020-09-21 10:04:21 -0300
committerMarcos Miller Dantas <mmillerdantas@outlook.com>2020-09-22 19:07:40 -0300
commitd5c98bf2df2baff4ed048c35d903424b8e1ce2e2 (patch)
treeb1b934166e857dc789e7904c4d1f46f1b86ab8a9 /src/SMAPI/Framework/Logging/LogManager.cs
parente0b3f97f9e7fee838d53f020ec4ddc29a2d194e1 (diff)
downloadSMAPI-d5c98bf2df2baff4ed048c35d903424b8e1ce2e2.tar.gz
SMAPI-d5c98bf2df2baff4ed048c35d903424b8e1ce2e2.tar.bz2
SMAPI-d5c98bf2df2baff4ed048c35d903424b8e1ce2e2.zip
Performance tuning
on an old laptop i've noticed that the thread was consuming alot of resources.
Diffstat (limited to 'src/SMAPI/Framework/Logging/LogManager.cs')
-rw-r--r--src/SMAPI/Framework/Logging/LogManager.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/SMAPI/Framework/Logging/LogManager.cs b/src/SMAPI/Framework/Logging/LogManager.cs
index 094dd749..d83a5c0b 100644
--- a/src/SMAPI/Framework/Logging/LogManager.cs
+++ b/src/SMAPI/Framework/Logging/LogManager.cs
@@ -138,15 +138,15 @@ namespace StardewModdingAPI.Framework.Logging
Thread inputThread = new Thread(() =>
{
while (true)
- {
+ {
// get input
- string input = Console.ReadLine();
- if (string.IsNullOrWhiteSpace(input))
- continue;
+ string input = Console.ReadLine();
+ if (string.IsNullOrWhiteSpace(input))
+ continue;
- // handle command
- this.Monitor.LogUserInput(input);
- handleInput(input);
+ // handle command
+ this.Monitor.LogUserInput(input);
+ handleInput(input);
}
});
inputThread.Start();