Shaun White Snowboarding: Use compat flag to eliminate a readback per frame

Should be a good performance improvement.

Just another case of a game copying a framebuffer to RAM, then texturing
directly from it.
This commit is contained in:
Henrik Rydgård committed 2022-06-11 12:00:06 +02:00
1 parent 59352bd78f
commit 63fdb99ca2
2 files changed
+9

No files matched your search

+2
View File
@@ -1784,6 +1784,8 @@ bool FramebufferManagerCommon::NotifyBlockTransferBefore(u32 dstBasePtr, int dst
int srcHeight = height;
int dstWidth = width;
int dstHeight = height;
// This looks at the compat flags BlockTransferAllowCreateFB*.
FindTransferFramebuffers(dstBuffer, srcBuffer, dstBasePtr, dstStride, dstX, dstY, srcBasePtr, srcStride, srcX, srcY, srcWidth, srcHeight, dstWidth, dstHeight, bpp);
if (dstBuffer && srcBuffer) {