summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncRequests.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2025-10-28 21:18:47 +0100
committerGitHub <noreply@github.com>2025-10-28 21:18:47 +0100
commit3d764f7b42b860db834159bb2db12e88abdffbed (patch)
tree31875b1f53c28aa61fdfc8c89de7b374e10b7a16 /Source/Core/VideoCommon/AsyncRequests.cpp
parent509584d3d3c8b7a66330d2bdb16e609e20f2dbbf (diff)
parentc69f868fff9bbbd3099abeb00a7a8da8dc930ecf (diff)
Merge pull request #14032 from jordan-woyak/spawn-gpu-thread
Core: Make EmuThread spawn a GPU thread and become the CPU thread in dual-core mode.
Diffstat (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index 0469d3ebb9..6671f93293 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -42,9 +42,6 @@ void AsyncRequests::QueueEvent(Event&& event)
{
m_empty.Clear();
- if (!m_enable)
- return;
-
m_queue.push(std::move(event));
auto& system = Core::System::GetInstance();
@@ -57,20 +54,6 @@ void AsyncRequests::WaitForEmptyQueue()
m_cond.wait(lock, [this] { return m_queue.empty(); });
}
-void AsyncRequests::SetEnable(bool enable)
-{
- std::unique_lock<std::mutex> lock(m_mutex);
- m_enable = enable;
-
- if (!enable)
- {
- // flush the queue on disabling
- while (!m_queue.empty())
- m_queue.pop();
- m_cond.notify_one();
- }
-}
-
void AsyncRequests::SetPassthrough(bool enable)
{
std::unique_lock<std::mutex> lock(m_mutex);