mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-17 20:48:04 -05:00
SingleCore: Move Host Timing from a sepparate thread to main cpu thread.
This commit is contained in:
@ -303,7 +303,7 @@ struct KernelCore::Impl {
|
||||
}
|
||||
const Kernel::Scheduler& sched = cores[result.host_handle].Scheduler();
|
||||
const Kernel::Thread* current = sched.GetCurrentThread();
|
||||
if (current != nullptr) {
|
||||
if (current != nullptr && !current->IsPhantomMode()) {
|
||||
result.guest_handle = current->GetGlobalHandle();
|
||||
} else {
|
||||
result.guest_handle = InvalidHandle;
|
||||
|
@ -597,6 +597,14 @@ public:
|
||||
is_continuous_on_svc = is_continuous;
|
||||
}
|
||||
|
||||
bool IsPhantomMode() const {
|
||||
return is_phantom_mode;
|
||||
}
|
||||
|
||||
void SetPhantomMode(bool phantom) {
|
||||
is_phantom_mode = phantom;
|
||||
}
|
||||
|
||||
private:
|
||||
friend class GlobalScheduler;
|
||||
friend class Scheduler;
|
||||
@ -699,6 +707,7 @@ private:
|
||||
bool is_continuous_on_svc = false;
|
||||
|
||||
bool will_be_terminated = false;
|
||||
bool is_phantom_mode = false;
|
||||
|
||||
bool was_running = false;
|
||||
|
||||
|
Reference in New Issue
Block a user