From a41cd7bdbaebe96d6109398ad6e314589079d60d Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 18 Jul 2013 10:46:09 +0200 Subject: [PATCH] Save some work when the displayed buffer isn't dirty. --- Core/HLE/sceDisplay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index cf0aa5e373..123b7efa87 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -460,9 +460,8 @@ void hleEnterVblank(u64 userdata, int cyclesLate) { // Check first though, might've just quit / been paused. if (coreState == CORE_RUNNING && gpu->FramebufferDirty()) { coreState = CORE_NEXTFRAME; + gpu->CopyDisplayToOutput(); } - - gpu->CopyDisplayToOutput(); } // Returning here with coreState == CORE_NEXTFRAME causes a buffer flip to happen (next frame).