summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-31 18:32:23 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-31 18:32:23 -0400
commit9992915f565578949cad8d9bb8ceb360e0db5c85 (patch)
tree1ff34ba24733fcdf44f52fb8ee10b2a956f1a708 /src/SMAPI/Framework/SCore.cs
parent9ef3f7edb1589a52794c7da7075996d4a02de6e7 (diff)
downloadSMAPI-9992915f565578949cad8d9bb8ceb360e0db5c85.tar.gz
SMAPI-9992915f565578949cad8d9bb8ceb360e0db5c85.tar.bz2
SMAPI-9992915f565578949cad8d9bb8ceb360e0db5c85.zip
replace MemoryCache with custom cache
This was causing significant frame stutters for some players since the migration to .NET 5 in Stardew Valley 1.5.5.
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r--src/SMAPI/Framework/SCore.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 67f78400..c453562f 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -1164,6 +1164,8 @@ namespace StardewModdingAPI.Framework
protected void OnNewDayAfterFade()
{
this.EventManager.DayEnding.RaiseEmpty();
+
+ this.Reflection.NewCacheInterval();
}
/// <summary>A callback invoked after an asset is fully loaded through a content manager.</summary>