From 45a4236283f412ed62eb2a1f6ace54090bbb3a3f Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 24 Aug 2014 18:17:39 -0400 Subject: [PATCH] A tiny restructuring to allow inlining of FifoCommandRunnable. Probably useless. --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 4dc80f8c3e..ff9cd8e735 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -469,12 +469,13 @@ void OpcodeDecoder_Shutdown() u32 OpcodeDecoder_Run(bool skipped_frame) { u32 totalCycles = 0; - u32 cycles = FifoCommandRunnable(); - while (cycles > 0) + while (true) { + u32 cycles = FifoCommandRunnable(); + if (cycles == 0) + break; skipped_frame ? DecodeSemiNop() : Decode(); totalCycles += cycles; - cycles = FifoCommandRunnable(); } return totalCycles; }