From 8b84ddce9a3e9c889996e2022279f78ef7a4ab5c Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 3 Sep 2014 21:49:15 +0200 Subject: VideoCommon: rewrite frame skipping code --- Source/Core/VideoCommon/Fifo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/Fifo.cpp') diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index fb47c73e49..8a872d5422 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -19,7 +19,7 @@ #include "VideoCommon/PixelEngine.h" #include "VideoCommon/VideoConfig.h" -volatile bool g_bSkipCurrentFrame = false; +bool g_bSkipCurrentFrame = false; namespace { @@ -173,7 +173,7 @@ void RunGpuLoop() ReadDataFromFifo(uData, 32); - cyclesExecuted = OpcodeDecoder_Run(g_bSkipCurrentFrame, GetVideoBufferEndPtr()); + cyclesExecuted = OpcodeDecoder_Run(GetVideoBufferEndPtr()); if (Core::g_CoreStartupParameter.bSyncGPU && Common::AtomicLoad(CommandProcessor::VITicks) > cyclesExecuted) Common::AtomicAdd(CommandProcessor::VITicks, -(s32)cyclesExecuted); @@ -235,7 +235,7 @@ void RunGpu() FPURoundMode::SaveSIMDState(); FPURoundMode::LoadDefaultSIMDState(); ReadDataFromFifo(uData, 32); - OpcodeDecoder_Run(g_bSkipCurrentFrame, GetVideoBufferEndPtr()); + OpcodeDecoder_Run(GetVideoBufferEndPtr()); FPURoundMode::LoadSIMDState(); //DEBUG_LOG(COMMANDPROCESSOR, "Fifo wraps to base"); -- cgit v1.2.3