From d1c930b5e56b68a5ca21bd2e2e566974cc916930 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Wed, 10 May 2023 21:32:15 -0400 Subject: [PATCH] reserved thread count (#2868) * reserved thread count * add comment, use latest main --------- Co-authored-by: briaguya --- libultraship | 2 +- soh/soh/OTRGlobals.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libultraship b/libultraship index 9d83e108a..57660fbb1 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit 9d83e108a5b15dc2f8631b9dd754308abd798270 +Subproject commit 57660fbb186d85923a1f771bfaafe241c209e579 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()); context->GetResourceManager()->GetResourceLoader()->RegisterResourceFactory(LUS::ResourceType::SOH_PlayerAnimation, "PlayerAnimation", std::make_shared());