From b020ae1c5db4e2e198d1beea91c75219a251a167 Mon Sep 17 00:00:00 2001 From: degasus Date: Thu, 5 Mar 2015 21:14:46 +0100 Subject: Fifo: rewrite sync on idle skipping hack Now it's done without a busy loop --- Source/Core/VideoCommon/CommandProcessor.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/Core/VideoCommon/CommandProcessor.h') diff --git a/Source/Core/VideoCommon/CommandProcessor.h b/Source/Core/VideoCommon/CommandProcessor.h index 0dad1578af..d25a5b7ef4 100644 --- a/Source/Core/VideoCommon/CommandProcessor.h +++ b/Source/Core/VideoCommon/CommandProcessor.h @@ -17,7 +17,6 @@ namespace CommandProcessor extern SCPFifoStruct fifo; //This one is shared between gfx thread and emulator thread. -extern volatile bool isPossibleWaitingSetDrawDone; //This one is used for sync gfx thread and emulator thread. extern volatile bool interruptSet; extern volatile bool interruptWaiting; extern volatile bool interruptTokenWaiting; @@ -145,7 +144,6 @@ void UpdateInterruptsFromVideoBackend(u64 userdata); void SetCpClearRegister(); void SetCpControlRegister(); void SetCpStatusRegister(); -void ProcessFifoAllDistance(); void ProcessFifoEvents(); void Update(); -- cgit v1.2.3 From d2c62b17445b666b81a19cb3a6c46f9ee2d1388e Mon Sep 17 00:00:00 2001 From: degasus Date: Fri, 13 Mar 2015 23:36:31 +0100 Subject: Fifo: only sleep once within every ms of emulated time --- Source/Core/VideoCommon/CommandProcessor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/VideoCommon/CommandProcessor.h') diff --git a/Source/Core/VideoCommon/CommandProcessor.h b/Source/Core/VideoCommon/CommandProcessor.h index d25a5b7ef4..6d177844a6 100644 --- a/Source/Core/VideoCommon/CommandProcessor.h +++ b/Source/Core/VideoCommon/CommandProcessor.h @@ -5,6 +5,7 @@ #pragma once #include "Common/CommonTypes.h" +#include "Common/Flag.h" #include "VideoCommon/VideoBackendBase.h" class PointerWrap; @@ -21,6 +22,7 @@ extern volatile bool interruptSet; extern volatile bool interruptWaiting; extern volatile bool interruptTokenWaiting; extern volatile bool interruptFinishWaiting; +extern Common::Flag s_gpuMaySleep; // internal hardware addresses enum -- cgit v1.2.3