diff options
| author | Mai <mathew1800@gmail.com> | 2022-11-27 06:00:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 06:00:46 +0000 |
| commit | 44f8b8c1007f2ead8530d53c4aca3df8fee6d6af (patch) | |
| tree | c987c2ea4757dc9f79303f74de42dacf8620272b /Source/Core/VideoCommon/Fifo.cpp | |
| parent | c8d30968f356afaec67d7ec2582c35857f7c77cb (diff) | |
| parent | daa70533cdb0de0a05b4341b499b4cd88e1a3368 (diff) | |
Merge pull request #11303 from AdmiralCurtiss/coretiming-class
CoreTiming: Refactor to class.
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Fifo.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index a69a83b00f..2166d1a48d 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -448,7 +448,8 @@ bool AtBreakpoint() void RunGpu() { - const bool is_dual_core = Core::System::GetInstance().IsDualCoreMode(); + auto& system = Core::System::GetInstance(); + const bool is_dual_core = system.IsDualCoreMode(); // wake up GPU thread if (is_dual_core && !s_use_deterministic_gpu_thread) @@ -462,7 +463,8 @@ void RunGpu() if (s_syncing_suspended) { s_syncing_suspended = false; - CoreTiming::ScheduleEvent(GPU_TIME_SLOT_SIZE, s_event_sync_gpu, GPU_TIME_SLOT_SIZE); + system.GetCoreTiming().ScheduleEvent(GPU_TIME_SLOT_SIZE, s_event_sync_gpu, + GPU_TIME_SLOT_SIZE); } } } @@ -611,7 +613,7 @@ static void SyncGPUCallback(Core::System& system, u64 ticks, s64 cyclesLate) s_syncing_suspended = next < 0; if (!s_syncing_suspended) - CoreTiming::ScheduleEvent(next, s_event_sync_gpu, next); + system.GetCoreTiming().ScheduleEvent(next, s_event_sync_gpu, next); } void SyncGPUForRegisterAccess() @@ -627,7 +629,8 @@ void SyncGPUForRegisterAccess() // Initialize GPU - CPU thread syncing, this gives us a deterministic way to start the GPU thread. void Prepare() { - s_event_sync_gpu = CoreTiming::RegisterEvent("SyncGPUCallback", SyncGPUCallback); + s_event_sync_gpu = + Core::System::GetInstance().GetCoreTiming().RegisterEvent("SyncGPUCallback", SyncGPUCallback); s_syncing_suspended = true; } } // namespace Fifo |
