From 3965cba187a628d1b4df12cf83874f260b8497f0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 26 Nov 2015 13:42:18 -0800 Subject: [PATCH] Disable clut render for now as a "slow effect". Also, add reporting. --- GPU/Directx9/TextureCacheDX9.cpp | 3 ++- GPU/GLES/TextureCache.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/Directx9/TextureCacheDX9.cpp b/GPU/Directx9/TextureCacheDX9.cpp index 9cd1ce4d36..3b74118253 100644 --- a/GPU/Directx9/TextureCacheDX9.cpp +++ b/GPU/Directx9/TextureCacheDX9.cpp @@ -789,6 +789,7 @@ void TextureCacheDX9::LoadClut(u32 clutAddr, u32 loadBytes) { framebuffer->last_frame_clut = gpuStats.numFlips; framebuffer->usageFlags |= FB_USAGE_CLUT; foundFramebuffer = true; + WARN_LOG_REPORT_ONCE(clutrenderdx9, G3D, "Using rendered CLUT for texture decode at %08x (%dx%dx%d)", clutAddr, framebuffer->width, framebuffer->height, framebuffer->colorDepth); } } @@ -796,7 +797,7 @@ void TextureCacheDX9::LoadClut(u32 clutAddr, u32 loadBytes) { if (Memory::IsValidAddress(clutAddr)) { // It's possible for a game to (successfully) access outside valid memory. u32 bytes = Memory::ValidSize(clutAddr, loadBytes); - if (foundFramebuffer) { + if (foundFramebuffer && !g_Config.bDisableSlowFramebufEffects) { gpu->PerformMemoryDownload(clutAddr, bytes); } diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 9f99e065fc..d06ec3cebf 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -811,6 +811,7 @@ void TextureCache::LoadClut(u32 clutAddr, u32 loadBytes) { framebuffer->last_frame_clut = gpuStats.numFlips; framebuffer->usageFlags |= FB_USAGE_CLUT; foundFramebuffer = true; + WARN_LOG_REPORT_ONCE(clutrender, G3D, "Using rendered CLUT for texture decode at %08x (%dx%dx%d)", clutAddr, framebuffer->width, framebuffer->height, framebuffer->colorDepth); } } @@ -818,7 +819,7 @@ void TextureCache::LoadClut(u32 clutAddr, u32 loadBytes) { if (Memory::IsValidAddress(clutAddr)) { // It's possible for a game to (successfully) access outside valid memory. u32 bytes = Memory::ValidSize(clutAddr, loadBytes); - if (foundFramebuffer) { + if (foundFramebuffer && !g_Config.bDisableSlowFramebufEffects) { gpu->PerformMemoryDownload(clutAddr, bytes); }