diff options
| author | Dentomologist <dentomologist@gmail.com> | 2023-06-04 17:18:18 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2025-10-26 18:01:51 -0700 |
| commit | 933071dd573c202de8c3c722e042d37d6bfcc2d1 (patch) | |
| tree | 6cf331900c78794a147fd27918ad2ec59705ed95 /Source/Core/VideoCommon | |
| parent | f497eb519e672a0dffbcd029dc937425af754ba0 (diff) | |
FifoManager: Remove redundant PauseAndLock parameters
PauseAndLock was only called with do_lock=true, and the function only
used unpauseOnUnlock when do_lock was false.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Fifo.cpp | 20 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Fifo.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 2 |
3 files changed, 8 insertions, 16 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index 7e07e0bbf3..ad8761c76b 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -67,23 +67,15 @@ void FifoManager::DoState(PointerWrap& p) p.Do(m_syncing_suspended); } -void FifoManager::PauseAndLock(bool do_lock, bool unpause_on_unlock) +void FifoManager::PauseAndLock() { - if (do_lock) - { - SyncGPU(SyncGPUReason::Other); - EmulatorState(false); + SyncGPU(SyncGPUReason::Other); + EmulatorState(false); - if (!m_system.IsDualCoreMode() || m_use_deterministic_gpu_thread) - return; + if (!m_system.IsDualCoreMode() || m_use_deterministic_gpu_thread) + return; - m_gpu_mainloop.WaitYield(std::chrono::milliseconds(100), Host_YieldToUI); - } - else - { - if (unpause_on_unlock) - EmulatorState(true); - } + m_gpu_mainloop.WaitYield(std::chrono::milliseconds(100), Host_YieldToUI); } void FifoManager::RestoreState(const bool was_running) diff --git a/Source/Core/VideoCommon/Fifo.h b/Source/Core/VideoCommon/Fifo.h index c6fc637661..2afa110532 100644 --- a/Source/Core/VideoCommon/Fifo.h +++ b/Source/Core/VideoCommon/Fifo.h @@ -52,7 +52,7 @@ public: void Shutdown(); void Prepare(); // Must be called from the CPU thread. void DoState(PointerWrap& f); - void PauseAndLock(bool do_lock, bool unpause_on_unlock); + void PauseAndLock(); void RestoreState(bool was_running); void UpdateWantDeterminism(bool want); bool UseDeterministicGPUThread() const { return m_use_deterministic_gpu_thread; } diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 4c11fb084e..60668f9f2d 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -64,7 +64,7 @@ void VideoConfig::Refresh() const bool lock_gpu_thread = Core::IsRunning(system); if (lock_gpu_thread) - system.GetFifo().PauseAndLock(true, false); + system.GetFifo().PauseAndLock(); g_Config.Refresh(); g_Config.VerifyValidity(); |
