When there are multiple copies, don't redownload.

This should improve performance when there are lots of little transfers.
This commit is contained in:
Unknown W. Brackets committed 2014-05-25 17:24:09 -07:00
1 parent cbb3fe0086
commit 2e1afcf08d
1 file changed
+1 -1
+1 -1
View File
@@ -1904,7 +1904,7 @@ bool FramebufferManager::NotifyBlockTransferBefore(u32 dstBasePtr, int dstStride
return false;
} else if (srcBuffer) {
WARN_LOG_ONCE(btd, G3D, "Block transfer download %08x -> %08x", srcBasePtr, dstBasePtr);
if (g_Config.bBlockTransferGPU) {
if (g_Config.bBlockTransferGPU && (srcBuffer == currentRenderVfb_ || !srcBuffer->memoryUpdated)) {
ReadFramebufferToMemory(srcBuffer, true, srcX, srcY, width, height);
}
return false; // Let the bit copy happen