From 63fdb99ca2ba769031b85316b6d318a71c32192f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 11 Jun 2022 11:58:58 +0200 Subject: [PATCH] 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. --- GPU/Common/FramebufferManagerCommon.cpp | 2 ++ assets/compat.ini | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/GPU/Common/FramebufferManagerCommon.cpp b/GPU/Common/FramebufferManagerCommon.cpp index 05b1dc30a6..f5ea895bd5 100644 --- a/GPU/Common/FramebufferManagerCommon.cpp +++ b/GPU/Common/FramebufferManagerCommon.cpp @@ -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) { diff --git a/assets/compat.ini b/assets/compat.ini index 7266ee4074..1f0e2b2178 100644 --- a/assets/compat.ini +++ b/assets/compat.ini @@ -690,6 +690,13 @@ ULJM05222 = true ULAS42040 = true ULKS46064 = true +# Shaun White Snowboarding (player shadow) +ULES01185 = true +ULUS10399 = true +ULJM05412 = true +NPJH50083 = true +ULJM05570 = true + [IntraVRAMBlockTransferAllowCreateFB] # Final Fantasy - Type 0 ULJM05900 = true