From 6ebdf2be29ce63bfd2427528710b3e257ffc133c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 14 Jun 2014 10:19:00 -0700 Subject: [PATCH] Skip memcpy fb download when already downloaded. Fixes Final Fantasy Tactics lag, discussion in #6308. --- GPU/GLES/Framebuffer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 9b0d6d542c..6929c67d3f 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -2112,11 +2112,9 @@ bool FramebufferManager::NotifyFramebufferCopy(u32 src, u32 dst, int size, bool return false; } else if (srcBuffer) { WARN_LOG_REPORT_ONCE(btdcpy, G3D, "Memcpy fbo download %08x -> %08x", src, dst); - if (g_Config.bBlockTransferGPU) { - if (srcH > 0) { - FlushBeforeCopy(); - ReadFramebufferToMemory(srcBuffer, true, 0, 0, srcBuffer->width, srcH); - } + FlushBeforeCopy(); + if (g_Config.bBlockTransferGPU && !srcBuffer->memoryUpdated && srcH > 0) { + ReadFramebufferToMemory(srcBuffer, true, 0, 0, srcBuffer->width, srcH); } return false; } else {