mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-21 09:21:02 +00:00
Skip memcpy fb download when already downloaded.
Fixes Final Fantasy Tactics lag, discussion in #6308.
This commit is contained in:
parent
b1396d51b2
commit
6ebdf2be29
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user