summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2023-05-10 21:32:15 -0400
committerGitHub <noreply@github.com>2023-05-10 21:32:15 -0400
commitd1c930b5e56b68a5ca21bd2e2e566974cc916930 (patch)
treec763ab75cd1d603947570e8fa7d6b6f024271564
parent6d4761f349ec6c2da05c4a259fb6564ad8651e4c (diff)
reserved thread count (#2868)
* reserved thread count * add comment, use latest main --------- Co-authored-by: briaguya <briaguya@alice>
m---------libultraship0
-rw-r--r--soh/soh/OTRGlobals.cpp3
2 files changed, 2 insertions, 1 deletions
diff --git a/libultraship b/libultraship
-Subproject 9d83e108a5b15dc2f8631b9dd754308abd79827
+Subproject 57660fbb186d85923a1f771bfaafe241c209e57
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp
index 698617017..d192de6aa 100644
--- a/soh/soh/OTRGlobals.cpp
+++ b/soh/soh/OTRGlobals.cpp
@@ -240,7 +240,8 @@ OTRGlobals::OTRGlobals() {
OOT_PAL_GC_DBG1,
OOT_PAL_GC_DBG2
};
- context = LUS::Context::CreateInstance("Ship of Harkinian", "soh", OTRFiles);
+ // tell LUS to reserve 3 SoH specific threads (Game, Audio, Save)
+ context = LUS::Context::CreateInstance("Ship of Harkinian", "soh", OTRFiles, {}, 3);
context->GetResourceManager()->GetResourceLoader()->RegisterResourceFactory(LUS::ResourceType::SOH_Animation, "Animation", std::make_shared<LUS::AnimationFactory>());
context->GetResourceManager()->GetResourceLoader()->RegisterResourceFactory(LUS::ResourceType::SOH_PlayerAnimation, "PlayerAnimation", std::make_shared<LUS::PlayerAnimationFactory>());