diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-11-26 09:29:46 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-11-27 03:47:12 +0100 |
| commit | c9558ecb4ca582bbacd931e41bb1660b69956e4b (patch) | |
| tree | 9c5b1379861a22f51c87135f7f8017ac96d77366 /Source/Core/VideoCommon/Fifo.cpp | |
| parent | ed84917eb393e9d4f7272189d1a1edd15199c0be (diff) | |
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 |
