mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 19:31:22 -08:00
kernel/process: Set ideal core from metadata
A very trivial change. If metadata is available, the process should use it to retrieve the desired core for the process to run on.
This commit is contained in:
parent
db3200b515
commit
547eecf119
@ -50,6 +50,7 @@ SharedPtr<ResourceLimit> Process::GetResourceLimit() const {
|
|||||||
|
|
||||||
void Process::LoadFromMetadata(const FileSys::ProgramMetadata& metadata) {
|
void Process::LoadFromMetadata(const FileSys::ProgramMetadata& metadata) {
|
||||||
program_id = metadata.GetTitleID();
|
program_id = metadata.GetTitleID();
|
||||||
|
ideal_processor = metadata.GetMainThreadCore();
|
||||||
is_64bit_process = metadata.Is64BitProgram();
|
is_64bit_process = metadata.Is64BitProgram();
|
||||||
vm_manager.Reset(metadata.GetAddressSpaceType());
|
vm_manager.Reset(metadata.GetAddressSpaceType());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user