reserved thread count (#2868)

* reserved thread count

* add comment, use latest main

---------

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2023-05-10 21:32:15 -04:00 committed by GitHub
parent 6d4761f349
commit d1c930b5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 9d83e108a5b15dc2f8631b9dd754308abd798270
Subproject commit 57660fbb186d85923a1f771bfaafe241c209e579

View File

@ -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>());